x86/mce: Address objtools noinstr complaints
[linux-2.6-microblaze.git] / arch / x86 / kernel / cpu / mce / winchip.c
index b3938c1..9c9f0ab 100644 (file)
 #include "internal.h"
 
 /* Machine check handler for WinChip C6: */
-static void winchip_machine_check(struct pt_regs *regs, long error_code)
+static noinstr void winchip_machine_check(struct pt_regs *regs)
 {
-       nmi_enter();
-
+       instrumentation_begin();
        pr_emerg("CPU0: Machine Check Exception.\n");
        add_taint(TAINT_MACHINE_CHECK, LOCKDEP_NOW_UNRELIABLE);
-
-       nmi_exit();
+       instrumentation_end();
 }
 
 /* Set up machine check reporting on the Winchip C6 series */