]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ACPI: idle: Fix acpi_safe_halt usages and interrupt enabling/disabling
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Fri, 1 Feb 2008 01:35:03 +0000 (17:35 -0800)
committerLen Brown <len.brown@intel.com>
Thu, 7 Feb 2008 07:11:14 +0000 (02:11 -0500)
commit2e906655baf1c6f6fccd212fc9e6499dc6928b80
treec9d3d71db721f725e6333228efaba4443e878e70
parent488b5ec871191359b9b79262a3d48456dae7ea5f
ACPI: idle: Fix acpi_safe_halt usages and interrupt enabling/disabling

acpi_safe_halt() needs interrupts to be disabled for atomic
need_resched check and safe halt. Otherwise we may miss an
interrupt and go into halt.

acpi_safe_halt() also does not enable interrupts on all return paths.

So the callers should handle enable and disable interrupts around it.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_idle.c