diff --git a/kernel/sysctl.c b/kernel/sysctl.c index a2a87c3ad44e..210d73fe7daa 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -591,7 +591,8 @@ static struct ctl_table kern_table[] = { .data = &sysctl_sched_time_avg, .maxlen = sizeof(unsigned int), .mode = 0644, - .proc_handler = proc_dointvec, + .proc_handler = proc_dointvec_minmax, + .extra1 = &one, }, { .procname = "sched_shares_window_ns",