diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-06-03 23:00:58 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-06-05 15:14:14 +0200 |
commit | 1a1b1d1322ebd1ece405f3057cdd408bc77e391d (patch) | |
tree | 32eec40d8c8280e4f44425f5aa7df5ecd38b810e /arch | |
parent | x86: nmi - consolidate nmi_watchdog_default for 32bit mode (diff) | |
download | linux-1a1b1d1322ebd1ece405f3057cdd408bc77e391d.tar.xz linux-1a1b1d1322ebd1ece405f3057cdd408bc77e391d.zip |
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')
-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) return; on_each_cpu(stop_apic_nmi_watchdog, NULL, 0, 1); - wd_ops->unreserve(); + + if (wd_ops) + wd_ops->unreserve(); BUG_ON(atomic_read(&nmi_active) != 0); } |