dynsched bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux