i386: fix NMI watchdog not reserving its MSRs
Changes
1 files changed · +6 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| arch/i386/kernel/cpu/perfctr-watchdog.c | modified | +6 | −0 | View file |
arch/i386/kernel/cpu/perfctr-watchdog.c
View filediff --git a/arch/i386/kernel/cpu/perfctr-watchdog.c b/arch/i386/kernel/cpu/perfctr-watchdog.c
index 2b04c8f..8343244 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)
probe_nmi_watchdog();
if (!wd_ops)
return -1;
+
+ if (!wd_ops->reserve()) {
+ printk(KERN_ERR
+ "NMI watchdog: cannot reserve perfctrs\n");
+ return -1;
+ }
}
if (!(wd_ops->setup(nmi_hz))) {