aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-09-22 13:02:25 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-09-23 05:38:53 -0400
commita8d6829044901a67732904be5f1eacdf8539604f (patch)
tree9540f55fd2beb716a5dda0146e3e742c5a48e380 /arch/x86/kernel/process.c
parent27ce4cb4a0c7cf59b9a9952266883862f2e4c99f (diff)
x86: prevent C-states hang on AMD C1E enabled machines
Impact: System hang when AMD C1E machines switch into C2/C3 AMD C1E enabled systems do not work with normal ACPI C-states even if the BIOS is advertising them. Limit the C-states to C1 for the ACPI processor idle code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r--arch/x86/kernel/process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 2e2247117f6e..d8c2a299bfe5 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -272,6 +272,7 @@ static void c1e_idle(void)
272 c1e_detected = 1; 272 c1e_detected = 1;
273 mark_tsc_unstable("TSC halt in C1E"); 273 mark_tsc_unstable("TSC halt in C1E");
274 printk(KERN_INFO "System has C1E enabled\n"); 274 printk(KERN_INFO "System has C1E enabled\n");
275 set_cpu_cap(&boot_cpu_data, X86_FEATURE_AMDC1E);
275 } 276 }
276 } 277 }
277 278