aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/mcheck/mce.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu/mcheck/mce.c')
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 54bd1b2fb4c..325559d1aa5 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -612,7 +612,7 @@ out:
612 * This way we prevent any potential data corruption in a unrecoverable case 612 * This way we prevent any potential data corruption in a unrecoverable case
613 * and also makes sure always all CPU's errors are examined. 613 * and also makes sure always all CPU's errors are examined.
614 * 614 *
615 * Also this detects the case of an machine check event coming from outer 615 * Also this detects the case of a machine check event coming from outer
616 * space (not detected by any CPUs) In this case some external agent wants 616 * space (not detected by any CPUs) In this case some external agent wants
617 * us to shut down, so panic too. 617 * us to shut down, so panic too.
618 * 618 *
@@ -665,7 +665,7 @@ static void mce_reign(void)
665 * No machine check event found. Must be some external 665 * No machine check event found. Must be some external
666 * source or one CPU is hung. Panic. 666 * source or one CPU is hung. Panic.
667 */ 667 */
668 if (!m && tolerant < 3) 668 if (global_worst <= MCE_KEEP_SEVERITY && tolerant < 3)
669 mce_panic("Machine check from unknown source", NULL, NULL); 669 mce_panic("Machine check from unknown source", NULL, NULL);
670 670
671 /* 671 /*
@@ -889,11 +889,11 @@ void do_machine_check(struct pt_regs *regs, long error_code)
889 mce_setup(&m); 889 mce_setup(&m);
890 890
891 m.mcgstatus = mce_rdmsrl(MSR_IA32_MCG_STATUS); 891 m.mcgstatus = mce_rdmsrl(MSR_IA32_MCG_STATUS);
892 no_way_out = mce_no_way_out(&m, &msg);
893
894 final = &__get_cpu_var(mces_seen); 892 final = &__get_cpu_var(mces_seen);
895 *final = m; 893 *final = m;
896 894
895 no_way_out = mce_no_way_out(&m, &msg);
896
897 barrier(); 897 barrier();
898 898
899 /* 899 /*