Re: 2.5.64-mm2->4 hangs on contest

Mike Galbraith
2003-03-10T10:16:13Z

[-- Attachment #1: Type: text/plain, Size: 26 bytes --]

Ahem. Attached this time.

[-- Attachment #2: buttugly.diff --]
[-- Type: application/octet-stream, Size: 434 bytes --]

--- kernel/sched.c.org Mon Mar 10 08:40:31 2003
+++ kernel/sched.c Mon Mar 10 11:35:19 2003
@@ -340,7 +340,7 @@
* the higher the average gets - and the higher the priority
* boost gets as well.
*/
- p->sleep_avg += sleep_time;
+ p->sleep_avg += sleep_time / (1 + rq->nr_running);
if (p->sleep_avg > MAX_SLEEP_AVG) {
int ticks = p->sleep_avg - MAX_SLEEP_AVG + current->sleep_avg;
p->sleep_avg = MAX_SLEEP_AVG;