]> rtime.felk.cvut.cz Git - mcf548x/linux.git/blobdiff - kernel/watchdog.c
watchdog: Improve initialisation error message and documentation
[mcf548x/linux.git] / kernel / watchdog.c
index bafba687a6d849a11f0201acd3d7ae5e63e9301e..5b082156cd2146fcf0971568d8eb28cb371b3627 100644 (file)
@@ -43,7 +43,7 @@ static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts_saved);
 static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
 #endif
 
-static int __initdata no_watchdog;
+static int no_watchdog;
 
 
 /* boot commands */
@@ -364,7 +364,8 @@ static int watchdog_nmi_enable(int cpu)
                goto out_save;
        }
 
-       printk(KERN_ERR "NMI watchdog failed to create perf event on cpu%i: %p\n", cpu, event);
+       printk(KERN_ERR "NMI watchdog disabled for cpu%i: unable to create perf event: %ld\n",
+              cpu, PTR_ERR(event));
        return PTR_ERR(event);
 
        /* success path */