sysctl: disallow setting sched_time_avg_ms to 0
The sched average period can not be 0, disallow setting it to 0. Otherwise CPUs stuck in sched_avg_update(). Change-Id: Ib9fcc5b35dface09d848ba7a737dc4ac0f05d8ee Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
parent
af883d4db0
commit
00b29ff455
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue