All of lore.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: linux kernel mailing list <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>
Subject: [PATCH] O14.1int
Date: Sun, 10 Aug 2003 11:29:53 +1000	[thread overview]
Message-ID: <200308101129.53270.kernel@kolivas.org> (raw)

Reverse the "fix" which broke SMP and small change to requeuing.
Will consider how to fix it properly.

Con

--- linux-2.6.0-test2-mm5-O14/kernel/sched.c	2003-08-10 11:26:04.000000000 +1000
+++ linux-2.6.0-test2-mm5/kernel/sched.c	2003-08-10 11:24:13.000000000 +1000
@@ -1178,9 +1178,9 @@ skip_queue:
 	 * 3) are cache-hot on their current CPU.
 	 */
 
-#define CAN_MIGRATE_TASK(p,rq,this_cpu)	\
-	((!idle || (NS_TO_JIFFIES(now - (p)->timestamp) > \
-		cache_decay_ticks)) && !task_running(rq, p) && \
+#define CAN_MIGRATE_TASK(p,rq,this_cpu)					\
+	((!idle || (((now - (p)->timestamp)>>10) > cache_decay_ticks)) &&\
+		!task_running(rq, p) &&					\
 			cpu_isset(this_cpu, (p)->cpus_allowed))
 
 	curr = curr->prev;
@@ -1405,6 +1405,7 @@ void scheduler_tick(int user_ticks, int 
 			 */
 			if (HIGH_CREDIT(p))
 				p->activated = 2;
+			p->prio = effective_prio(p);
 			enqueue_task(p, rq->active);
 		}
 	}


                 reply	other threads:[~2003-08-10  1:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200308101129.53270.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=akpm@osdl.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 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.