cpuidle: fix AMD C1E suspend hang
authorShaohua Li <shaohua.li@intel.com>
Tue, 19 May 2009 08:09:54 +0000 (16:09 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 27 May 2009 03:45:33 +0000 (23:45 -0400)
commit7d60e8ab0d5507229dfbdf456501cc378610fa01
tree008fe5442f841fd555b7fa43253c166f2b5c8099
parent87ad57bacb25c3f24c54f142ef445f68277705f0
cpuidle: fix AMD C1E suspend hang

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>
drivers/acpi/processor_idle.c