public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: linux kernel mailing list <linux-kernel@vger.kernel.org>,
	ck list <ck@vds.kolivas.org>,
	Nicolas.Mailhot@laposte.net
Subject: sched rsdl fix for 0.28
Date: Sun, 11 Mar 2007 11:07:00 +1100	[thread overview]
Message-ID: <200703111107.00704.kernel@kolivas.org> (raw)

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

             reply	other threads:[~2007-03-10 23:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-11  0:07 Con Kolivas [this message]
2007-03-11  9:10 ` [BIG] Re: sched rsdl fix for 0.28 Nicolas Mailhot
2007-03-11  9:21   ` Con Kolivas
2007-03-11  9:51     ` Con Kolivas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200703111107.00704.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=Nicolas.Mailhot@laposte.net \
    --cc=ck@vds.kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox