From: Andrew Morton Date: Sat, 17 May 2014 13:19:22 +0000 (+1000) Subject: kernel-watchdogc-print-traces-for-all-cpus-on-lockup-detection-fix X-Git-Tag: next-20140519~3^2~45 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=083d981a5e7fff13ec779a13cb34e8fc1fb4457d;p=karo-tx-linux.git kernel-watchdogc-print-traces-for-all-cpus-on-lockup-detection-fix additional CONFIG_SMP=n optimisations Cc: Aaron Tomlin Cc: David S. Miller Cc: Don Zickus Cc: Mateusz Guzik Cc: Oleg Nesterov Signed-off-by: Andrew Morton --- diff --git a/include/linux/nmi.h b/include/linux/nmi.h index 487d94589b2a..c57617399ec4 100644 --- a/include/linux/nmi.h +++ b/include/linux/nmi.h @@ -48,9 +48,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 *); diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 0e78f08a090d..bd77e97963a3 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -31,7 +31,12 @@ 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;