aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDimitri Sivanich <sivanich@sgi.com>2008-05-12 15:21:14 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 00:35:03 -0400
commit9383d9679056e6cc4e7ff70f31da945a268238f4 (patch)
treec6678a8c4e0fed0739e43f24b608d51856af6f1f /include
parent9c44bc03fff44ff04237a7d92e35304a0e50c331 (diff)
softlockup: fix softlockup_thresh unaligned access and disable detection at runtime
Fix unaligned access errors when setting softlockup_thresh on 64 bit platforms. Allow softlockup detection to be disabled by setting softlockup_thresh <= 0. Detect that boot time softlockup detection has been disabled earlier in softlockup_tick. Signed-off-by: Dimitri Sivanich <sivanich@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 71f5972dc48e..ea26221644e2 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -295,10 +295,10 @@ extern void spawn_softlockup_task(void);
295extern void touch_softlockup_watchdog(void); 295extern void touch_softlockup_watchdog(void);
296extern void touch_all_softlockup_watchdogs(void); 296extern void touch_all_softlockup_watchdogs(void);
297extern unsigned int softlockup_panic; 297extern unsigned int softlockup_panic;
298extern unsigned long softlockup_thresh;
299extern unsigned long sysctl_hung_task_check_count; 298extern unsigned long sysctl_hung_task_check_count;
300extern unsigned long sysctl_hung_task_timeout_secs; 299extern unsigned long sysctl_hung_task_timeout_secs;
301extern unsigned long sysctl_hung_task_warnings; 300extern unsigned long sysctl_hung_task_warnings;
301extern int softlockup_thresh;
302#else 302#else
303static inline void softlockup_tick(void) 303static inline void softlockup_tick(void)
304{ 304{