|
@@ -432,8 +432,7 @@ nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
|
|
|
* Ayiee, looks like this CPU is stuck ...
|
|
|
* wait a few IRQs (5 seconds) before doing the oops ...
|
|
|
*/
|
|
|
- __this_cpu_inc(alert_counter);
|
|
|
- if (__this_cpu_read(alert_counter) == 5 * nmi_hz)
|
|
|
+ if (__this_cpu_inc_return(alert_counter) == 5 * nmi_hz)
|
|
|
/*
|
|
|
* die_nmi will return ONLY if NOTIFY_STOP happens..
|
|
|
*/
|