Messages in this thread Patch in this message | | | From | Con Kolivas <> | Subject | [PATCH] O14.1int | Date | Sun, 10 Aug 2003 11:29:53 +1000 |
| |
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/
| |