sched: Cleanup pre_schedule_rt
authorYong Zhang <yong.zhang0@gmail.com>
Tue, 9 Feb 2010 19:43:59 +0000 (14:43 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 13 Dec 2010 20:02:46 +0000 (15:02 -0500)
commit33c3d6c61debcc0d295fe65521cfbc45409936c7
treec45c932a3229f288a70cdd7d7dde6a8a01e4db48
parent6313e3c21743cc88bb5bd8aa72948ee1e83937b6
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>
kernel/sched_rt.c