diff options
-rw-r--r-- | arch/i386/kernel/cpu/perfctr-watchdog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/i386/kernel/cpu/perfctr-watchdog.c b/arch/i386/kernel/cpu/perfctr-watchdog.c index 2b04c8f1db62..8343244b72c4 100644 --- a/arch/i386/kernel/cpu/perfctr-watchdog.c +++ b/arch/i386/kernel/cpu/perfctr-watchdog.c | |||
@@ -614,6 +614,12 @@ int lapic_watchdog_init(unsigned nmi_hz) | |||
614 | probe_nmi_watchdog(); | 614 | probe_nmi_watchdog(); |
615 | if (!wd_ops) | 615 | if (!wd_ops) |
616 | return -1; | 616 | return -1; |
617 | |||
618 | if (!wd_ops->reserve()) { | ||
619 | printk(KERN_ERR | ||
620 | "NMI watchdog: cannot reserve perfctrs\n"); | ||
621 | return -1; | ||
622 | } | ||
617 | } | 623 | } |
618 | 624 | ||
619 | if (!(wd_ops->setup(nmi_hz))) { | 625 | if (!(wd_ops->setup(nmi_hz))) { |