ACPI: acpi_os_allocate() fixes
authorLen Brown <len.brown@intel.com>
Mon, 10 Jul 2006 05:35:51 +0000 (01:35 -0400)
committerLen Brown <len.brown@intel.com>
Mon, 10 Jul 2006 06:37:22 +0000 (02:37 -0400)
commite21c1ca3f98529921c829a792dfdbfc5a5dc393b
treefdb0a3c00d46db197ae65e6c66fc841b194cb507
parentb3cf257623fabd8f1ee6700a6d328cc1c5da5a1d
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.

Delete some memset() that could fault on allocation failure.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/osl.c
drivers/acpi/parser/psutils.c
drivers/acpi/pci_link.c
drivers/acpi/utilities/utalloc.c
include/acpi/acmacros.h
include/acpi/platform/aclinux.h