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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 5fbd87ad0f56..fa5a46273b79 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -7,7 +7,7 @@
7 * Update the current task's runtime statistics. Skip current tasks that 7 * Update the current task's runtime statistics. Skip current tasks that
8 * are not in our scheduling class. 8 * are not in our scheduling class.
9 */ 9 */
10static inline void update_curr_rt(struct rq *rq, u64 now) 10static inline void update_curr_rt(struct rq *rq)
11{ 11{
12 struct task_struct *curr = rq->curr; 12 struct task_struct *curr = rq->curr;
13 u64 delta_exec; 13 u64 delta_exec;
@@ -42,7 +42,7 @@ dequeue_task_rt(struct rq *rq, struct task_struct *p, int sleep, u64 now)
42{ 42{
43 struct rt_prio_array *array = &rq->rt.active; 43 struct rt_prio_array *array = &rq->rt.active;
44 44
45 update_curr_rt(rq, now); 45 update_curr_rt(rq);
46 46
47 list_del(&p->run_list); 47 list_del(&p->run_list);
48 if (list_empty(array->queue + p->prio)) 48 if (list_empty(array->queue + p->prio))
@@ -96,7 +96,7 @@ static struct task_struct *pick_next_task_rt(struct rq *rq, u64 now)
96 96
97static void put_prev_task_rt(struct rq *rq, struct task_struct *p, u64 now) 97static void put_prev_task_rt(struct rq *rq, struct task_struct *p, u64 now)
98{ 98{
99 update_curr_rt(rq, now); 99 update_curr_rt(rq);
100 p->se.exec_start = 0; 100 p->se.exec_start = 0;
101} 101}
102 102