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:
Jianping Liu 2024-11-14 16:33:28 +08:00
parent 251e419790
commit fa1f2753b2
1 changed files with 0 additions and 2 deletions

View File

@ -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();
}
/*