提交 7d60e8ab 编写于 作者: S Shaohua Li 提交者: Len Brown

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: NDmitry Lyzhyn <thisistempbox@yahoo.com>
Signed-off-by: NShaohua Li <shaohua.li@intel.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 87ad57ba
...@@ -834,8 +834,8 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev, ...@@ -834,8 +834,8 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev,
/* Do not access any ACPI IO ports in suspend path */ /* Do not access any ACPI IO ports in suspend path */
if (acpi_idle_suspend) { if (acpi_idle_suspend) {
acpi_safe_halt();
local_irq_enable(); local_irq_enable();
cpu_relax();
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册