summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorYong Zhang <yong.zhang0@gmail.com>2010-02-09 14:43:59 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-12-13 15:02:46 -0500
commit33c3d6c61debcc0d295fe65521cfbc45409936c7 (patch)
treec45c932a3229f288a70cdd7d7dde6a8a01e4db48 /kernel
parent6313e3c21743cc88bb5bd8aa72948ee1e83937b6 (diff)
downloadop-kernel-dev-33c3d6c61debcc0d295fe65521cfbc45409936c7.zip
op-kernel-dev-33c3d6c61debcc0d295fe65521cfbc45409936c7.tar.gz
sched: Cleanup pre_schedule_rt
Since [commit 9a897c5a: sched: RT-balance, replace hooks with pre/post schedule and wakeup methods] we must call pre_schedule_rt if prev is rt task. So condition rt_task(prev) is always true and the 'unlikely' declaration is simply incorrect. Signed-off-by: Yong Zhang <yong.zhang0@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched_rt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index bea7d79..1ab66a2 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -1474,7 +1474,7 @@ skip:
static void pre_schedule_rt(struct rq *rq, struct task_struct *prev)
{
/* Try to pull RT tasks here if we lower this rq's prio */
- if (unlikely(rt_task(prev)) && rq->rt.highest_prio.curr > prev->prio)
+ if (rq->rt.highest_prio.curr > prev->prio)
pull_rt_task(rq);
}
OpenPOWER on IntegriCloud