diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-06-03 17:00:58 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-06-05 09:14:14 -0400 |
commit | 1a1b1d1322ebd1ece405f3057cdd408bc77e391d (patch) | |
tree | 32eec40d8c8280e4f44425f5aa7df5ecd38b810e /arch/x86/kernel/cpu | |
parent | 3ed3f06295e69700fa808396f7b350bff2b69de0 (diff) |
x86: watchdog - check for CPU is being supported
This patch does check if CPU is being recongnized
before call the unreserve(). Since enable_lapic_nmi_watchdog()
does have such a check the same is make sense here too
in a sake of code consistency (but nothing more).
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: mingo@redhat.com
Cc: hpa@zytor.com
Cc: macro@linux-mips.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/perfctr-watchdog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perfctr-watchdog.c b/arch/x86/kernel/cpu/perfctr-watchdog.c index f9ae93adffe5..ddda4b64f545 100644 --- a/arch/x86/kernel/cpu/perfctr-watchdog.c +++ b/arch/x86/kernel/cpu/perfctr-watchdog.c | |||
@@ -181,7 +181,9 @@ void disable_lapic_nmi_watchdog(void) | |||
181 | return; | 181 | return; |
182 | 182 | ||
183 | on_each_cpu(stop_apic_nmi_watchdog, NULL, 0, 1); | 183 | on_each_cpu(stop_apic_nmi_watchdog, NULL, 0, 1); |
184 | wd_ops->unreserve(); | 184 | |
185 | if (wd_ops) | ||
186 | wd_ops->unreserve(); | ||
185 | 187 | ||
186 | BUG_ON(atomic_read(&nmi_active) != 0); | 188 | BUG_ON(atomic_read(&nmi_active) != 0); |
187 | } | 189 | } |