i386: fix NMI watchdog not reserving its MSRs

At system boot time, the NMI watchdog no longer reserved its MSRs, allowing
other subsystems to mess with them. Fix that.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Björn Steinbrink and committed by Linus Torvalds faa4cfa6 38ad2ed0

+6
+6
arch/i386/kernel/cpu/perfctr-watchdog.c
··· 614 probe_nmi_watchdog(); 615 if (!wd_ops) 616 return -1; 617 } 618 619 if (!(wd_ops->setup(nmi_hz))) {
··· 614 probe_nmi_watchdog(); 615 if (!wd_ops) 616 return -1; 617 + 618 + if (!wd_ops->reserve()) { 619 + printk(KERN_ERR 620 + "NMI watchdog: cannot reserve perfctrs\n"); 621 + return -1; 622 + } 623 } 624 625 if (!(wd_ops->setup(nmi_hz))) {