x86/mce: revert "Add NMIs setup in machine_check func"
The function of do_machine_check has called nmi_enter before mce_panic, so it needn't to call nmi_enter at the outside of do_machine_check. Signed-off-by: Jianping Liu <frankjpliu@tencent.com> Reviewed-by: Yongliang Gao <leonylgao@tencent.com>
This commit is contained in:
parent
251e419790
commit
fa1f2753b2
|
@ -2012,9 +2012,7 @@ void (*machine_check_vector)(struct pt_regs *, long error_code) =
|
|||
|
||||
dotraplinkage void do_mce(struct pt_regs *regs, long error_code)
|
||||
{
|
||||
nmi_enter();
|
||||
machine_check_vector(regs, error_code);
|
||||
nmi_exit();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue