]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - kernel/watchdog.c
Fix compile error - BIO_RW does not exist anymore
[mv-sheeva.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 */