From: Pavel Machek Date: Tue, 25 Nov 2008 11:05:08 +0000 (+0100) Subject: ACPI: scheduling in atomic via acpi_evaluate_integer () X-Git-Tag: v2.6.28-rc7~55^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40599072dca3ec7d4c9ff8271978be169f974638;p=pandora-kernel.git ACPI: scheduling in atomic via acpi_evaluate_integer () Now I know why I had strange "scheduling in atomic" problems: acpi_evaluate_integer() does malloc(..., irqs_disabled() ? GFP_ATOMIC : GFP_KERNEL)... which is (of course) broken. There's no way to reliably tell if we need GFP_ATOMIC or not from code, this one for example fails to detect spinlocks held. Fortunately, allocation seems small enough to be done on stack. Signed-off-by: Pavel Machek Acked-by: Bob Moore Signed-off-by: Len Brown --- Reading git-diff-tree failed