diff options
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/nmi.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/i386/kernel/nmi.c b/arch/i386/kernel/nmi.c index 171194ccb7bc..f5bc7e1be801 100644 --- a/arch/i386/kernel/nmi.c +++ b/arch/i386/kernel/nmi.c | |||
@@ -870,14 +870,16 @@ static unsigned int | |||
870 | 870 | ||
871 | void touch_nmi_watchdog (void) | 871 | void touch_nmi_watchdog (void) |
872 | { | 872 | { |
873 | int i; | 873 | if (nmi_watchdog > 0) { |
874 | unsigned cpu; | ||
874 | 875 | ||
875 | /* | 876 | /* |
876 | * Just reset the alert counters, (other CPUs might be | 877 | * Just reset the alert counters, (other CPUs might be |
877 | * spinning on locks we hold): | 878 | * spinning on locks we hold): |
878 | */ | 879 | */ |
879 | for_each_possible_cpu(i) | 880 | for_each_present_cpu (cpu) |
880 | alert_counter[i] = 0; | 881 | alert_counter[cpu] = 0; |
882 | } | ||
881 | 883 | ||
882 | /* | 884 | /* |
883 | * Tickle the softlockup detector too: | 885 | * Tickle the softlockup detector too: |