lkml.org 
[lkml]   [2006]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: [linux-pm] [BUG] sleeping function called from invalid context during resume
Date
From

>> ACPI: acpi_os_allocate() fixes
>>
>> Replace acpi_in_resume with a more general hack
>> to check irqs_disabled() on any kmalloc() from ACPI.
>> While setting (system_state != SYSTEM_RUNNING) on resume
>> seemed more general, Andrew Morton preferred this approach.
>>
>> http://bugzilla.kernel.org/show_bug.cgi?id=3469
>>
>> Make acpi_os_allocate() into an inline function to
>> allow /proc/slab_allocators to work.
>
>Another problem with this patch; it doesn't compile.
>
>Along with the other changes to
>include/acpi/platform/aclinux.h, you need
>to define acpi_size. The easiest way is to #include
><acpi/actypes.h> and then remove the unneeded definitions of
acpi_cpu_flags and
>acpi_thread_id.

oops, looks like I e-mailed and attached a diff that was
from before I built and tested. The version in git
has one line different -- includes actypes.h as you suggest.
I've updated the attachment in the bug report above to match git.

note that the definitions of acpi_cpu_flags
and acpi_thread_id are not un-needed. Indeed,
they must occur in aclinux.h above where actypes.h
is included or the ACPICA defaults would be used
and that would break the Linux build.

thanks,
-Len
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-10 20:51    [W:0.045 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site