cpuidle: fix AMD C1E suspend hang
commit91b84c89188eb1189e05581d7d4318f9445dd0b8
authorShaohua Li <shaohua.li@intel.com>
Tue, 19 May 2009 08:09:54 +0000 (19 16:09 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Jun 2009 16:40:07 +0000 (15 09:40 -0700)
treed44cd6fc742cac5c3abc791c333b11fea007dc93
parentab726ea2b8ceb78da2ed2e9fd6a60444f01e5d0d
cpuidle: fix AMD C1E suspend hang

commit 7d60e8ab0d5507229dfbdf456501cc378610fa01 upstream.

When AMD C1E is enabled, local APIC timer will stop even in C1. To avoid
suspend/resume hang, this patch removes C1 and replace it with a cpu_relax() in
suspend/resume path. This hasn't any impact in runtime path.

http://bugzilla.kernel.org/show_bug.cgi?id=13233

[ impact: avoid suspend/resume hang in AMD CPU with C1E enabled ]

Tested-by: Dmitry Lyzhyn <thisistempbox@yahoo.com>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/acpi/processor_idle.c