Skip to content

Commit

Permalink
x86: print message if nmi_watchdog=2 cannot be enabled
Browse files Browse the repository at this point in the history
right now if there's no CPU support for nmi_watchdog=2 we'll just
refuse it silently.

print a useful warning.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Apr 4, 2008
1 parent 4f14bde commit 9c9b81f
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 @@ -667,8 +667,10 @@ int lapic_watchdog_init(unsigned nmi_hz)
{
if (!wd_ops) {
probe_nmi_watchdog();
if (!wd_ops)
if (!wd_ops) {
printk(KERN_INFO "NMI watchdog: CPU not supported\n");
return -1;
}

if (!wd_ops->reserve()) {
printk(KERN_ERR
Expand Down

0 comments on commit 9c9b81f

Please sign in to comment.