Messages in this thread Patch in this message | | | From | Con Kolivas <> | Subject | [PATCH] Fix find busiest queue 2.6.0-test9 | Date | Sun, 9 Nov 2003 03:49:04 +1100 |
| |
Hi
I believe this is a simple typo / variable name mixup between rq_src and this_rq. So far all testing shows positive (if minor) improvements.
Con --- linux-2.6.0-test9-base/kernel/sched.c 2003-10-26 07:52:58.000000000 +1100 +++ linux-2.6.0-test9/kernel/sched.c 2003-11-09 01:25:07.684769327 +1100 @@ -1073,11 +1073,11 @@ static inline runqueue_t *find_busiest_q continue; rq_src = cpu_rq(i); - if (idle || (rq_src->nr_running < this_rq->prev_cpu_load[i])) + if (idle || (rq_src->nr_running < rq_src->prev_cpu_load[i])) load = rq_src->nr_running; else - load = this_rq->prev_cpu_load[i]; - this_rq->prev_cpu_load[i] = rq_src->nr_running; + load = rq_src->prev_cpu_load[i]; + rq_src->prev_cpu_load[i] = rq_src->nr_running; if ((load > max_load) && (rq_src != this_rq)) { busiest = rq_src; | |