lkml.org 
[lkml]   [2003]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] O14.1int
Date
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);
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.075 / U:1.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site