* dynsched bug
@ 2006-03-08 20:14 Gunter Fritz
0 siblings, 0 replies; only message in thread
From: Gunter Fritz @ 2006-03-08 20:14 UTC (permalink / raw)
To: linux-kernel
hey
there is a bug in the dynsched patch.
(http://sourceforge.net/projects/dynsched) the recalculation of the nice
prio must be done before the new scheduler activate the running tasks.
if you had download it, change scheduler_switch in sched.c like
following:
//add the running processes to the new rq
for_each_process(p){
nice = sched_drvp->prio_to_nice(p);
p->static_prio = data->new_scheduler->nice_to_prio(nice);
p->prio = p->static_prio;
if(p->state == TASK_RUNNING){
data->new_scheduler->activate_task(p,rq, 1);
count_rq_processes++;
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-08 19:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 20:14 dynsched bug Gunter Fritz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox