]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: fix suspend regression due to idle update
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Mon, 11 Feb 2008 23:20:27 +0000 (15:20 -0800)
committerLen Brown <len.brown@intel.com>
Thu, 14 Feb 2008 04:59:31 +0000 (23:59 -0500)
commit4f362624c95295feda9841820921270d7c4eb72e
tree2653c87aebf041ba0fb175a23401ee894d83d95f
parentfa3184973311af8f07f34b763764f6d28386018e
ACPI: fix suspend regression due to idle update

Earlier patch (f3bc8619a1f0a6cd7102992a0f0f3e883a974da7) broke
suspend resume on many laptops. The problem was reported by
Carlos R. Mafra and Calvin Walton, who bisected the issue to above patch.

The problem was because, C2 and C3 code were calling acpi_idle_enter_c1
directly, with C2 or C3 as state parameter, while suspend/resume was in
progress. The patch f3bc861 started making use of that state information,
assuming that it would always be referring to C1 state. This caused the
problem with suspend-resume as we ended up using C2/C3 state indirectly.

Fix this by adding acpi_idle_suspend check in enter_c1.

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