projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d6923
)
x86/mce: Remove !banks check
author
Borislav Petkov
<bp@suse.de>
Fri, 22 Jun 2018 09:54:25 +0000
(11:54 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 22 Jun 2018 12:37:22 +0000
(14:37 +0200)
If we don't have MCA banks, we won't see machine checks anyway. Drop the
check.
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link:
https://lkml.kernel.org/r/20180622095428.626-5-bp@alien8.de
arch/x86/kernel/cpu/mcheck/mce.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/mcheck/mce.c
b/arch/x86/kernel/cpu/mcheck/mce.c
index 18804834dbc057bc4bb4abbf2055872c1d88e537..8ac2ea2a874a0b41ccddd006b4d5246eec1fe331 100644
(file)
--- a/
arch/x86/kernel/cpu/mcheck/mce.c
+++ b/
arch/x86/kernel/cpu/mcheck/mce.c
@@
-1187,9
+1187,6
@@
void do_machine_check(struct pt_regs *regs, long error_code)
this_cpu_inc(mce_exception_count);
- if (!cfg->banks)
- goto out;
-
mce_gather_info(&m, regs);
m.tsc = rdtsc();
@@
-1329,7
+1326,7
@@
void do_machine_check(struct pt_regs *regs, long error_code)
if (worst > 0)
mce_report_event(regs);
mce_wrmsrl(MSR_IA32_MCG_STATUS, 0);
-out:
+
sync_core();
if (worst != MCE_AR_SEVERITY && !kill_it)