summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriele Paoloni <gabriele.paoloni@intel.com>2020-11-27 16:18:18 +0000
committerBorislav Petkov <bp@suse.de>2020-12-01 18:54:32 +0100
commitd5b38e3d0fdb1a16994b449bc338fb8b26816b07 (patch)
tree64e692947c3f708de1c859a48002e87a1e35ff2a
parent3a866b16fd2360a9c4ebf71cfbf7ebfe968c1409 (diff)
downloadlinux-d5b38e3d0fdb1a16994b449bc338fb8b26816b07.tar.bz2
x86/mce: Remove redundant call to irq_work_queue()
Currently, __mc_scan_banks() in do_machine_check() does the following callchain: __mc_scan_banks()->mce_log()->irq_work_queue(&mce_irq_work). Hence, the call to irq_work_queue() below after __mc_scan_banks() seems redundant. Just remove it. Signed-off-by: Gabriele Paoloni <gabriele.paoloni@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Link: https://lkml.kernel.org/r/20201127161819.3106432-5-gabriele.paoloni@intel.com
-rw-r--r--arch/x86/kernel/cpu/mce/core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c
index 99da2e0b595b..a9991a96445d 100644
--- a/arch/x86/kernel/cpu/mce/core.c
+++ b/arch/x86/kernel/cpu/mce/core.c
@@ -1406,9 +1406,6 @@ noinstr void do_machine_check(struct pt_regs *regs)
}
}
- if (worst > 0)
- irq_work_queue(&mce_irq_work);
-
if (worst != MCE_AR_SEVERITY && !kill_it)
goto out;