public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sched rsdl fix for 0.28
@ 2007-03-11  0:07 Con Kolivas
  2007-03-11  9:10 ` [BIG] " Nicolas Mailhot
  0 siblings, 1 reply; 4+ messages in thread
From: Con Kolivas @ 2007-03-11  0:07 UTC (permalink / raw)
  To: linux kernel mailing list, ck list, Nicolas.Mailhot

Here's a big bugfix for sched rsdl 0.28

---
 kernel/sched.c |    7 +++++++
 1 file changed, 7 insertions(+)

Index: linux-2.6.21-rc3-mm2/kernel/sched.c
===================================================================
--- linux-2.6.21-rc3-mm2.orig/kernel/sched.c	2007-03-11 11:04:38.000000000 +1100
+++ linux-2.6.21-rc3-mm2/kernel/sched.c	2007-03-11 11:05:46.000000000 +1100
@@ -3328,6 +3328,13 @@ static inline void rotate_runqueue_prior
 	int new_prio_level, remaining_quota = rq_quota(rq, rq->prio_level);
 	struct prio_array *array = rq->active;
 
+	/*
+	 * Make sure we don't have tasks still on the active array that
+	 * haven't run due to not preempting (merging or smp balancing)
+	 */
+	if (find_next_bit(rq->dyn_bitmap, MAX_PRIO, MAX_RT_PRIO) <
+		rq->prio_level)
+			return;
 	if (rq->prio_level > MAX_PRIO - 2) {
 		/* Major rotation required */
 		struct prio_array *new_queue = rq->expired;

-- 
-ck

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

end of thread, other threads:[~2007-03-11  9:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-11  0:07 sched rsdl fix for 0.28 Con Kolivas
2007-03-11  9:10 ` [BIG] " Nicolas Mailhot
2007-03-11  9:21   ` Con Kolivas
2007-03-11  9:51     ` Con Kolivas

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