[PATCH] sched: remove noop in pre_schedule_rt()
From: Hillf Danton
Date: Thu May 26 2011 - 09:09:04 EST
Checking task to be RT is removed since only RT task is served here.
Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
---
--- tip-git/kernel/sched_rt.c Sun May 22 20:12:01 2011
+++ sched_rt.c Thu May 26 21:11:19 2011
@@ -1516,7 +1516,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);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/