diff options
author | Don Zickus <dzickus@redhat.com> | 2010-05-07 17:11:46 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-12 17:55:45 -0400 |
commit | 2508ce1845a3b256798532b2c6b7997c2dc6533b (patch) | |
tree | fcc5addae65fe7c803106230ff62bbc2535cf4e0 /kernel/sysctl.c | |
parent | 332fbdbca3f7716c5620970755ae054d213bcc4e (diff) |
lockup_detector: Remove old softlockup code
Now that is no longer compiled or used, just remove it.
Also move some of the code wrapped with DETECT_SOFTLOCKUP to the
LOCKUP_DETECTOR wrappers because that is the code that uses it now.
Signed-off-by: Don Zickus <dzickus@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Eric Paris <eparis@redhat.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
LKML-Reference: <1273266711-18706-4-git-send-email-dzickus@redhat.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 999bc3fccf47..04bcd8abe09c 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -108,7 +108,7 @@ extern int blk_iopoll_enabled; | |||
108 | #endif | 108 | #endif |
109 | 109 | ||
110 | /* Constants used for minimum and maximum */ | 110 | /* Constants used for minimum and maximum */ |
111 | #ifdef CONFIG_DETECT_SOFTLOCKUP | 111 | #ifdef CONFIG_LOCKUP_DETECTOR |
112 | static int sixty = 60; | 112 | static int sixty = 60; |
113 | static int neg_one = -1; | 113 | static int neg_one = -1; |
114 | #endif | 114 | #endif |
@@ -703,6 +703,15 @@ static struct ctl_table kern_table[] = { | |||
703 | .extra1 = &neg_one, | 703 | .extra1 = &neg_one, |
704 | .extra2 = &sixty, | 704 | .extra2 = &sixty, |
705 | }, | 705 | }, |
706 | { | ||
707 | .procname = "softlockup_panic", | ||
708 | .data = &softlockup_panic, | ||
709 | .maxlen = sizeof(int), | ||
710 | .mode = 0644, | ||
711 | .proc_handler = proc_dointvec_minmax, | ||
712 | .extra1 = &zero, | ||
713 | .extra2 = &one, | ||
714 | }, | ||
706 | #endif | 715 | #endif |
707 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) && !defined(CONFIG_LOCKUP_DETECTOR) | 716 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) && !defined(CONFIG_LOCKUP_DETECTOR) |
708 | { | 717 | { |
@@ -807,17 +816,6 @@ static struct ctl_table kern_table[] = { | |||
807 | .proc_handler = proc_dointvec, | 816 | .proc_handler = proc_dointvec, |
808 | }, | 817 | }, |
809 | #endif | 818 | #endif |
810 | #ifdef CONFIG_DETECT_SOFTLOCKUP | ||
811 | { | ||
812 | .procname = "softlockup_panic", | ||
813 | .data = &softlockup_panic, | ||
814 | .maxlen = sizeof(int), | ||
815 | .mode = 0644, | ||
816 | .proc_handler = proc_dointvec_minmax, | ||
817 | .extra1 = &zero, | ||
818 | .extra2 = &one, | ||
819 | }, | ||
820 | #endif | ||
821 | #ifdef CONFIG_DETECT_HUNG_TASK | 819 | #ifdef CONFIG_DETECT_HUNG_TASK |
822 | { | 820 | { |
823 | .procname = "hung_task_panic", | 821 | .procname = "hung_task_panic", |