]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel-watchdogc-print-traces-for-all-cpus-on-lockup-detection-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 14 May 2014 00:07:57 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 16 May 2014 06:39:14 +0000 (16:39 +1000)
additional CONFIG_SMP=n optimisations

Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Mateusz Guzik <mguzik@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/nmi.h
kernel/watchdog.c

index 961b1773c44dcd4f02786117c4a2a451f4e903f2..447775ee2c4b0e51429af5c8e06276ac8a19c65d 100644 (file)
@@ -57,9 +57,7 @@ int hw_nmi_is_cpu_stuck(struct pt_regs *);
 u64 hw_nmi_get_sample_period(int watchdog_thresh);
 extern int watchdog_user_enabled;
 extern int watchdog_thresh;
-#ifdef CONFIG_SMP
 extern int sysctl_softlockup_all_cpu_backtrace;
-#endif
 struct ctl_table;
 extern int proc_dowatchdog(struct ctl_table *, int ,
                           void __user *, size_t *, loff_t *);
index 0e78f08a090d2f253a1a7bafba0c590c70f53a9a..bd77e97963a37b97c7cecd7e7881098e428b75cb 100644 (file)
 
 int watchdog_user_enabled = 1;
 int __read_mostly watchdog_thresh = 10;
+#ifdef CONFIG_SMP
 int __read_mostly sysctl_softlockup_all_cpu_backtrace;
+#else
+#define sysctl_softlockup_all_cpu_backtrace 0
+#endif
+
 static int __read_mostly watchdog_running;
 static u64 __read_mostly sample_period;