public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: remove noop in next_prio()
@ 2011-05-21 14:19 Hillf Danton
  2011-05-24  8:17 ` Yong Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Hillf Danton @ 2011-05-21 14:19 UTC (permalink / raw)
  To: LKML
  Cc: Ingo Molnar, Peter Zijlstra, Steven Rostedt, Mike Galbraith,
	Yong Zhang

When computing the next priority for a given run-queue, the check for
RT priority of the task determined by the pick_next_highest_task_rt()
function could be removed, since only RT task is returned by the
function.

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

--- a/kernel/sched_rt.c	2011-04-27 11:48:50.000000000 +0800
+++ b/kernel/sched_rt.c	2011-05-21 22:10:34.000000000 +0800
@@ -670,7 +670,7 @@ static inline int next_prio(struct rq *r
 {
 	struct task_struct *next = pick_next_highest_task_rt(rq, rq->cpu);

-	if (next && rt_prio(next->prio))
+	if (next)
 		return next->prio;
 	else
 		return MAX_RT_PRIO;

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

end of thread, other threads:[~2011-08-14 15:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-21 14:19 [PATCH] sched: remove noop in next_prio() Hillf Danton
2011-05-24  8:17 ` Yong Zhang
2011-05-24 11:53   ` Mike Galbraith
2011-05-24 14:20     ` Hillf Danton
2011-05-24 14:16       ` Jesper Juhl
2011-05-24 14:26         ` Hillf Danton
2011-05-24 13:09 ` Steven Rostedt
2011-08-14 15:59 ` [tip:sched/core] sched: Remove " tip-bot for Hillf Danton

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