diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-03-27 18:39:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-04 12:36:45 -0400 |
commit | 9c9b81f77330ddc003a2de2f35fa6a20410c1a62 (patch) | |
tree | 9c96b2827aea1cd44770330ea28ff5bf65077f8e /arch | |
parent | 4f14bdef41e599e218d71e3d0abf339d65e9b480 (diff) |
x86: print message if nmi_watchdog=2 cannot be enabled
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>
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 19a359472ae1..b943e10ad814 100644 --- a/arch/x86/kernel/cpu/perfctr-watchdog.c +++ b/arch/x86/kernel/cpu/perfctr-watchdog.c | |||
@@ -667,8 +667,10 @@ int lapic_watchdog_init(unsigned nmi_hz) | |||
667 | { | 667 | { |
668 | if (!wd_ops) { | 668 | if (!wd_ops) { |
669 | probe_nmi_watchdog(); | 669 | probe_nmi_watchdog(); |
670 | if (!wd_ops) | 670 | if (!wd_ops) { |
671 | printk(KERN_INFO "NMI watchdog: CPU not supported\n"); | ||
671 | return -1; | 672 | return -1; |
673 | } | ||
672 | 674 | ||
673 | if (!wd_ops->reserve()) { | 675 | if (!wd_ops->reserve()) { |
674 | printk(KERN_ERR | 676 | printk(KERN_ERR |