lkml.org 
[lkml]   [2012]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 7/8] auto bind the memory device which is hotpluged before the driver is loaded
On Tue, 26 Jun 2012, Konrad Rzeszutek Wilk wrote:

> > diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
> > index 148c88a..a682657 100644
> > --- a/drivers/acpi/acpi_memhotplug.c
> > +++ b/drivers/acpi/acpi_memhotplug.c
> > @@ -52,6 +52,9 @@ MODULE_LICENSE("GPL");
> > #define MEMORY_POWER_ON_STATE 1
> > #define MEMORY_POWER_OFF_STATE 2
> >
> > +static bool auto_probe;
> > +module_param(auto_probe, bool, S_IRUGO | S_IWUSR);
> > +
> > static int acpi_memory_device_add(struct acpi_device *device);
> > static int acpi_memory_device_remove(struct acpi_device *device, int type);
> >
> > @@ -515,12 +518,44 @@ acpi_memory_register_notify_handler(acpi_handle handle,
> > u32 level, void *ctxt, void **retv)
> > {
> > acpi_status status;
> > -
> > + struct acpi_memory_device *mem_device = NULL;
> > + unsigned long long current_status;
>
> Can it just be unsigned long?
>

Not on 32-bit, the ACPI 2.0 and later specs can handle 64 bit integers.


\
 
 \ /
  Last update: 2012-06-27 07:21    [W:0.067 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site