aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/rt.c')
-rw-r--r--kernel/sched/rt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index f42ae7fb5ec5..f70206c2c802 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -1972,7 +1972,7 @@ static void task_tick_rt(struct rq *rq, struct task_struct *p, int queued)
1972 if (--p->rt.time_slice) 1972 if (--p->rt.time_slice)
1973 return; 1973 return;
1974 1974
1975 p->rt.time_slice = DEF_TIMESLICE; 1975 p->rt.time_slice = RR_TIMESLICE;
1976 1976
1977 /* 1977 /*
1978 * Requeue to the end of queue if we are not the only element 1978 * Requeue to the end of queue if we are not the only element
@@ -2000,7 +2000,7 @@ static unsigned int get_rr_interval_rt(struct rq *rq, struct task_struct *task)
2000 * Time slice is 0 for SCHED_FIFO tasks 2000 * Time slice is 0 for SCHED_FIFO tasks
2001 */ 2001 */
2002 if (task->policy == SCHED_RR) 2002 if (task->policy == SCHED_RR)
2003 return DEF_TIMESLICE; 2003 return RR_TIMESLICE;
2004 else 2004 else
2005 return 0; 2005 return 0;
2006} 2006}