diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-05 18:38:40 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-12 05:04:55 -0500 |
commit | 56992309ccbe71f4321ddd50ee2f76f91b412c1a (patch) | |
tree | d2ffd767aa21cae9364769a25c6b181ccb8b3fb3 /kernel/slow-work.c | |
parent | ab09203e302b6e526f6930f3e460064b0f253ae9 (diff) |
sysctl kernel: Remove binary sysctl logic
Now that sys_sysctl is a generic wrapper around /proc/sys .ctl_name
and .strategy members of sysctl tables are dead code. Remove them.
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'kernel/slow-work.c')
-rw-r--r-- | kernel/slow-work.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/slow-work.c b/kernel/slow-work.c index 0d31135efbf4..0134b15b38d8 100644 --- a/kernel/slow-work.c +++ b/kernel/slow-work.c | |||
@@ -52,7 +52,6 @@ static const int slow_work_max_vslow = 99; | |||
52 | 52 | ||
53 | ctl_table slow_work_sysctls[] = { | 53 | ctl_table slow_work_sysctls[] = { |
54 | { | 54 | { |
55 | .ctl_name = CTL_UNNUMBERED, | ||
56 | .procname = "min-threads", | 55 | .procname = "min-threads", |
57 | .data = &slow_work_min_threads, | 56 | .data = &slow_work_min_threads, |
58 | .maxlen = sizeof(unsigned), | 57 | .maxlen = sizeof(unsigned), |
@@ -62,7 +61,6 @@ ctl_table slow_work_sysctls[] = { | |||
62 | .extra2 = &slow_work_max_threads, | 61 | .extra2 = &slow_work_max_threads, |
63 | }, | 62 | }, |
64 | { | 63 | { |
65 | .ctl_name = CTL_UNNUMBERED, | ||
66 | .procname = "max-threads", | 64 | .procname = "max-threads", |
67 | .data = &slow_work_max_threads, | 65 | .data = &slow_work_max_threads, |
68 | .maxlen = sizeof(unsigned), | 66 | .maxlen = sizeof(unsigned), |
@@ -72,7 +70,6 @@ ctl_table slow_work_sysctls[] = { | |||
72 | .extra2 = (void *) &slow_work_max_max_threads, | 70 | .extra2 = (void *) &slow_work_max_max_threads, |
73 | }, | 71 | }, |
74 | { | 72 | { |
75 | .ctl_name = CTL_UNNUMBERED, | ||
76 | .procname = "vslow-percentage", | 73 | .procname = "vslow-percentage", |
77 | .data = &vslow_work_proportion, | 74 | .data = &vslow_work_proportion, |
78 | .maxlen = sizeof(unsigned), | 75 | .maxlen = sizeof(unsigned), |
@@ -81,7 +78,7 @@ ctl_table slow_work_sysctls[] = { | |||
81 | .extra1 = (void *) &slow_work_min_vslow, | 78 | .extra1 = (void *) &slow_work_min_vslow, |
82 | .extra2 = (void *) &slow_work_max_vslow, | 79 | .extra2 = (void *) &slow_work_max_vslow, |
83 | }, | 80 | }, |
84 | { .ctl_name = 0 } | 81 | {} |
85 | }; | 82 | }; |
86 | #endif | 83 | #endif |
87 | 84 | ||