diff options
author | Yong Zhang <yong.zhang0@gmail.com> | 2011-02-20 02:08:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-02-23 05:33:58 -0500 |
commit | 1747b21fecbfb63fbf6b9624e8b92707960d5a97 (patch) | |
tree | 5c318fb7d8426f760f5cf3e3f1c256fb6b9fe1a8 /kernel/sysctl.c | |
parent | 866ab43efd325fae8889ea77a744d03f2b957e38 (diff) |
sched, autogroup, sysctl: Use proc_dointvec_minmax() instead
sched_autogroup_enabled has min/max value, proc_dointvec_minmax() is
be used for this case.
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1298185696-4403-2-git-send-email-yong.zhang0@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index cb7c830f7faa..7b5eeadfb254 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -367,7 +367,7 @@ static struct ctl_table kern_table[] = { | |||
367 | .data = &sysctl_sched_autogroup_enabled, | 367 | .data = &sysctl_sched_autogroup_enabled, |
368 | .maxlen = sizeof(unsigned int), | 368 | .maxlen = sizeof(unsigned int), |
369 | .mode = 0644, | 369 | .mode = 0644, |
370 | .proc_handler = proc_dointvec, | 370 | .proc_handler = proc_dointvec_minmax, |
371 | .extra1 = &zero, | 371 | .extra1 = &zero, |
372 | .extra2 = &one, | 372 | .extra2 = &one, |
373 | }, | 373 | }, |