diff options
-rw-r--r-- | arch/x86/kernel/apic/nmi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/nmi.c b/arch/x86/kernel/apic/nmi.c index b387dce0b409..37769cc4fe55 100644 --- a/arch/x86/kernel/apic/nmi.c +++ b/arch/x86/kernel/apic/nmi.c | |||
@@ -432,8 +432,7 @@ nmi_watchdog_tick(struct pt_regs *regs, unsigned reason) | |||
432 | * Ayiee, looks like this CPU is stuck ... | 432 | * Ayiee, looks like this CPU is stuck ... |
433 | * wait a few IRQs (5 seconds) before doing the oops ... | 433 | * wait a few IRQs (5 seconds) before doing the oops ... |
434 | */ | 434 | */ |
435 | __this_cpu_inc(alert_counter); | 435 | if (__this_cpu_inc_return(alert_counter) == 5 * nmi_hz) |
436 | if (__this_cpu_read(alert_counter) == 5 * nmi_hz) | ||
437 | /* | 436 | /* |
438 | * die_nmi will return ONLY if NOTIFY_STOP happens.. | 437 | * die_nmi will return ONLY if NOTIFY_STOP happens.. |
439 | */ | 438 | */ |