]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: watchdog - check for CPU is being supported
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 3 Jun 2008 21:00:58 +0000 (01:00 +0400)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 5 Jun 2008 13:14:14 +0000 (15:14 +0200)
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>
arch/x86/kernel/cpu/perfctr-watchdog.c

index f9ae93adffe5a58619b2c687e39cfbb43e00d987..ddda4b64f545793e125aface72bc1dbba08b2c9b 100644 (file)
@@ -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);
 }