Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1747b21f authored by Yong Zhang's avatar Yong Zhang Committed by Ingo Molnar
Browse files

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: default avatarYong Zhang <yong.zhang0@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1298185696-4403-2-git-send-email-yong.zhang0@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 866ab43e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -367,7 +367,7 @@ static struct ctl_table kern_table[] = {
		.data		= &sysctl_sched_autogroup_enabled,
		.maxlen		= sizeof(unsigned int),
		.mode		= 0644,
		.proc_handler	= proc_dointvec,
		.proc_handler	= proc_dointvec_minmax,
		.extra1		= &zero,
		.extra2		= &one,
	},