kernel-ark/drivers/acpi
Dave Jones a64882e795 [PATCH] ACPI: fix sleeping whilst atomic warnings on resume
This has been broken for months.  On resume, we call acpi_pci_link_set()
with interrupts off, so we get a warning when we try to do a kmalloc of non
atomic memory.  The actual allocation is just 2 long's (plus extra byte for
some reason I can't fathom), so a simple conversion to GFP_ATOMIC is
probably the safest way to fix this.

The error looks like this..

Debug: sleeping function called from invalid context at mm/slab.c:2486
in_atomic():0, irqs_disabled():1
 [<c0143f6c>] kmem_cache_alloc+0x40/0x56
 [<c0206a2e>] acpi_pci_link_set+0x3f/0x17f
 [<c0206f96>] irqrouter_resume+0x1e/0x3c
 [<c0239bca>] __sysdev_resume+0x11/0x6b
 [<c0239e88>] sysdev_resume+0x34/0x52
 [<c023de21>] device_power_up+0x5/0xa

Signed-off-by: Dave Jones <davej@redhat.com>
Cc: "Brown, Len" <len.brown@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-12-12 08:57:45 -08:00
..
dispatcher [ACPI] ACPICA 20050902 2005-09-03 00:15:11 -04:00
events [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
executer [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
hardware [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
namespace [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
parser [ACPI] ACPICA 20050902 2005-09-03 00:15:11 -04:00
resources [ACPI] ACPICA 20050902 2005-09-03 00:15:11 -04:00
sleep [PATCH] introduce .valid callback for pm_ops 2005-10-30 17:37:15 -08:00
tables [ACPI] ACPICA 20050815 2005-08-29 23:44:25 -04:00
utilities [ACPI] ACPICA 20050902 2005-09-03 00:15:11 -04:00
ac.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
acpi_memhotplug.c [PATCH] memory hotplug: move section_mem_map alloc to sparse.c 2005-10-29 21:40:44 -07:00
asus_acpi.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
battery.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
blacklist.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
bus.c [PATCH] move pm_register/etc. to CONFIG_PM_LEGACY, pm_legacy.h 2005-11-13 18:14:10 -08:00
button.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
container.c [PATCH] kfree cleanup: misc remaining drivers 2005-11-07 07:54:05 -08:00
debug.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
ec.c [ACPI] Lindent drivers/acpi/ec.c 2005-08-11 17:33:10 -04:00
event.c [PATCH] Fix /proc/acpi/events around suspend 2005-10-17 17:03:57 -07:00
fan.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
glue.c [PATCH] pciehp: clean-up how we request control of hotplug hardware 2005-11-10 16:09:15 -08:00
hotkey.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
ibm_acpi.c [ACPI] IBM ThinkPad ACPI Extras Driver v0.12 2005-08-25 17:37:51 -04:00
Kconfig [ACPI] delete "default y" on Kconfig for ibm_acpi extras driver 2005-11-30 22:15:25 -05:00
Makefile [ACPI] IA64 build: blacklist.c is used only on X86 2005-11-30 21:59:35 -05:00
motherboard.c Merge from-linus to-akpm 2005-08-15 16:07:26 -04:00
numa.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
osl.c [PATCH] drivers/acpi: fix-up schedule_timeout() usage 2005-11-07 07:53:56 -08:00
pci_bind.c [ACPI] add static to function definitions 2005-09-03 00:20:13 -04:00
pci_irq.c [ACPI] fix run-time error checking in acpi_pci_irq_disable() 2005-09-03 00:36:26 -04:00
pci_link.c [PATCH] ACPI: fix sleeping whilst atomic warnings on resume 2005-12-12 08:57:45 -08:00
pci_root.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
power.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
processor_core.c [ACPI] fix 2.6.13 boot hang regression on HT box w/ broken BIOS 2005-11-30 23:28:50 -05:00
processor_idle.c Add missing "local_irq_enable()" to C2/C3 exit logic 2005-12-02 23:09:06 -08:00
processor_perflib.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
processor_thermal.c [ACPI] Allow return to active cooling mode once passive mode is entered 2005-11-30 22:51:04 -05:00
processor_throttling.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
scan.c [ACPI] fix HP nx8220 boot hang regression 2005-11-30 04:35:02 -05:00
system.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
tables.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
thermal.c [ACPI] Allow return to active cooling mode once passive mode is entered 2005-11-30 22:51:04 -05:00
toshiba_acpi.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
utils.c [ACPI] Lindent all ACPI files 2005-08-05 00:45:14 -04:00
video.c [ACPI] Fix Null pointer deref in video/lcd/brightness 2005-11-30 23:03:08 -05:00