All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: fair scheduler should not resched rt tasks
@ 2008-10-11  7:01 Steven Rostedt
  2008-10-11 11:02 ` Peter Zijlstra
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2008-10-11  7:01 UTC (permalink / raw)
  To: LKML
  Cc: Linus Torvalds, Andrew Morton, Ingo Molnar, Thomas Gleixner,
	Clark Williams, Peter Zijlstra


Using ftrace, I noticed latencies in real-time tasks where they were
needlessly calling schedule due to sched_fair sending out time slices.

This patch prevents a call to resched_task by the sched fair class if
the task it wants to reschedule is an rt task.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
---
 kernel/sched_fair.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-compile.git/kernel/sched_fair.c
===================================================================
--- linux-compile.git.orig/kernel/sched_fair.c	2008-10-11 02:54:01.000000000 -0400
+++ linux-compile.git/kernel/sched_fair.c	2008-10-11 02:55:52.000000000 -0400
@@ -889,7 +889,7 @@ static void hrtick_start_fair(struct rq 
 		s64 delta = slice - ran;
 
 		if (delta < 0) {
-			if (rq->curr == p)
+			if (rq->curr == p && !rt_task(p))
 				resched_task(p);
 			return;
 		}

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

end of thread, other threads:[~2008-10-11 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-11  7:01 [PATCH] sched: fair scheduler should not resched rt tasks Steven Rostedt
2008-10-11 11:02 ` Peter Zijlstra
2008-10-11 13:55   ` Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.