|
@@ -8471,8 +8471,9 @@ int sched_rr_handler(struct ctl_table *table, int write,
|
|
/* make sure that internally we keep jiffies */
|
|
/* make sure that internally we keep jiffies */
|
|
/* also, writing zero resets timeslice to default */
|
|
/* also, writing zero resets timeslice to default */
|
|
if (!ret && write) {
|
|
if (!ret && write) {
|
|
- sched_rr_timeslice = sched_rr_timeslice <= 0 ?
|
|
|
|
- RR_TIMESLICE : msecs_to_jiffies(sched_rr_timeslice);
|
|
|
|
|
|
+ sched_rr_timeslice =
|
|
|
|
+ sysctl_sched_rr_timeslice <= 0 ? RR_TIMESLICE :
|
|
|
|
+ msecs_to_jiffies(sysctl_sched_rr_timeslice);
|
|
}
|
|
}
|
|
mutex_unlock(&mutex);
|
|
mutex_unlock(&mutex);
|
|
return ret;
|
|
return ret;
|