aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/cpu/common.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index f00258462444..3f272d42d09a 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1071,22 +1071,19 @@ void __cpuinit cpu_init(void)
1071 */ 1071 */
1072 if (kgdb_connected && arch_kgdb_ops.correct_hw_break) 1072 if (kgdb_connected && arch_kgdb_ops.correct_hw_break)
1073 arch_kgdb_ops.correct_hw_break(); 1073 arch_kgdb_ops.correct_hw_break();
1074 else { 1074 else
1075#endif 1075#endif
1076 /* 1076 {
1077 * Clear all 6 debug registers: 1077 /*
1078 */ 1078 * Clear all 6 debug registers:
1079 1079 */
1080 set_debugreg(0UL, 0); 1080 set_debugreg(0UL, 0);
1081 set_debugreg(0UL, 1); 1081 set_debugreg(0UL, 1);
1082 set_debugreg(0UL, 2); 1082 set_debugreg(0UL, 2);
1083 set_debugreg(0UL, 3); 1083 set_debugreg(0UL, 3);
1084 set_debugreg(0UL, 6); 1084 set_debugreg(0UL, 6);
1085 set_debugreg(0UL, 7); 1085 set_debugreg(0UL, 7);
1086#ifdef CONFIG_KGDB
1087 /* If the kgdb is connected no debug regs should be altered. */
1088 } 1086 }
1089#endif
1090 1087
1091 fpu_init(); 1088 fpu_init();
1092 1089