mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched: remove noop in pre_schedule_rt()
@ 2011-05-26 13:08 Hillf Danton
  2011-05-27  9:17 ` Yong Zhang
  0 siblings, 1 reply; 7+ messages in thread
From: Hillf Danton @ 2011-05-26 13:08 UTC (permalink / raw)
  To: LKML
  Cc: Steven Rostedt, Mike Galbraith, Yong Zhang, Peter Zijlstra, Ingo Molnar

Checking task to be RT is removed since only RT task is served here.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- 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);
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-06 13:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26 13:08 [PATCH] sched: remove noop in pre_schedule_rt() Hillf Danton
2011-05-27  9:17 ` Yong Zhang
2011-05-27 12:31   ` Steven Rostedt
2011-06-06  8:35   ` Hillf Danton
2011-06-06 11:26     ` Steven Rostedt
2011-06-06 13:14       ` Hillf Danton
2011-06-06 13:25         ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®