Commit f3cd1c4e authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Ingo Molnar

sched/core: Use put_prev_task() accessor where possible

Signed-off-by: default avatarKirill Tkhai <ktkhai@parallels.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1410529300.3569.25.camel@tkhaiSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent a8edd075
...@@ -3033,7 +3033,7 @@ void rt_mutex_setprio(struct task_struct *p, int prio) ...@@ -3033,7 +3033,7 @@ void rt_mutex_setprio(struct task_struct *p, int prio)
if (queued) if (queued)
dequeue_task(rq, p, 0); dequeue_task(rq, p, 0);
if (running) if (running)
p->sched_class->put_prev_task(rq, p); put_prev_task(rq, p);
/* /*
* Boosting condition are: * Boosting condition are:
...@@ -3586,7 +3586,7 @@ static int __sched_setscheduler(struct task_struct *p, ...@@ -3586,7 +3586,7 @@ static int __sched_setscheduler(struct task_struct *p,
if (queued) if (queued)
dequeue_task(rq, p, 0); dequeue_task(rq, p, 0);
if (running) if (running)
p->sched_class->put_prev_task(rq, p); put_prev_task(rq, p);
prev_class = p->sched_class; prev_class = p->sched_class;
__setscheduler(rq, p, attr); __setscheduler(rq, p, attr);
...@@ -4792,7 +4792,7 @@ void sched_setnuma(struct task_struct *p, int nid) ...@@ -4792,7 +4792,7 @@ void sched_setnuma(struct task_struct *p, int nid)
if (queued) if (queued)
dequeue_task(rq, p, 0); dequeue_task(rq, p, 0);
if (running) if (running)
p->sched_class->put_prev_task(rq, p); put_prev_task(rq, p);
p->numa_preferred_nid = nid; p->numa_preferred_nid = nid;
...@@ -7374,7 +7374,7 @@ void sched_move_task(struct task_struct *tsk) ...@@ -7374,7 +7374,7 @@ void sched_move_task(struct task_struct *tsk)
if (queued) if (queued)
dequeue_task(rq, tsk, 0); dequeue_task(rq, tsk, 0);
if (unlikely(running)) if (unlikely(running))
tsk->sched_class->put_prev_task(rq, tsk); put_prev_task(rq, tsk);
tg = container_of(task_css_check(tsk, cpu_cgrp_id, tg = container_of(task_css_check(tsk, cpu_cgrp_id,
lockdep_is_held(&tsk->sighand->siglock)), lockdep_is_held(&tsk->sighand->siglock)),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment