linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] O14.1int
@ 2003-08-10  1:29 Con Kolivas
  0 siblings, 0 replies; only message in thread
From: Con Kolivas @ 2003-08-10  1:29 UTC (permalink / raw)
  To: linux kernel mailing list; +Cc: Andrew Morton

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);
 		}
 	}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-10  1:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-10  1:29 [PATCH] O14.1int Con Kolivas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).