summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDimitri Sivanich <sivanich@sgi.com>2008-05-12 21:21:14 +0200
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 06:35:03 +0200
commit9383d9679056e6cc4e7ff70f31da945a268238f4 (patch)
treec6678a8c4e0fed0739e43f24b608d51856af6f1f /include
parent9c44bc03fff44ff04237a7d92e35304a0e50c331 (diff)
downloadop-kernel-dev-9383d9679056e6cc4e7ff70f31da945a268238f4.zip
op-kernel-dev-9383d9679056e6cc4e7ff70f31da945a268238f4.tar.gz
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 71f5972..ea26221 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -295,10 +295,10 @@ extern void spawn_softlockup_task(void);
extern void touch_softlockup_watchdog(void);
extern void touch_all_softlockup_watchdogs(void);
extern unsigned int softlockup_panic;
-extern unsigned long softlockup_thresh;
extern unsigned long sysctl_hung_task_check_count;
extern unsigned long sysctl_hung_task_timeout_secs;
extern unsigned long sysctl_hung_task_warnings;
+extern int softlockup_thresh;
#else
static inline void softlockup_tick(void)
{
OpenPOWER on IntegriCloud