Skip to content

Commit

Permalink
x86: watchdog - check for CPU is being supported
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyrill Gorcunov authored and Thomas Gleixner committed Jun 5, 2008
1 parent 3ed3f06 commit 1a1b1d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/x86/kernel/cpu/perfctr-watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1a1b1d1

Please sign in to comment.