aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2014-05-23 05:06:35 -0400
committerBorislav Petkov <bp@suse.de>2014-05-30 16:05:31 -0400
commit716079f66eacd31d040db9cd0627ca0d625d6126 (patch)
tree59fed7f354fb93b90bf778cc1588c32680bc77e7 /arch/x86/kernel/cpu
parent9c15a24b038f4d8da93a2bc2554731f8953a7c17 (diff)
mce: Panic when a core has reached a timeout
There is very little and maybe practically nothing we can do to recover from a system where at least one core has reached a timeout during the whole monarch cores gathering. So panic when that happens. Link: http://lkml.kernel.org/r/20140523091041.GA21332@pd.tnic Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 0078761219a2..6cc800381d14 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -704,8 +704,7 @@ static int mce_timed_out(u64 *t)
704 if (!mca_cfg.monarch_timeout) 704 if (!mca_cfg.monarch_timeout)
705 goto out; 705 goto out;
706 if ((s64)*t < SPINUNIT) { 706 if ((s64)*t < SPINUNIT) {
707 /* CHECKME: Make panic default for 1 too? */ 707 if (mca_cfg.tolerant <= 1)
708 if (mca_cfg.tolerant < 1)
709 mce_panic("Timeout synchronizing machine check over CPUs", 708 mce_panic("Timeout synchronizing machine check over CPUs",
710 NULL, NULL); 709 NULL, NULL);
711 cpu_missing = 1; 710 cpu_missing = 1;