* [PATCH] O11.2int for interactivity
@ 2003-07-30 21:28 Con Kolivas
2003-07-30 21:21 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Con Kolivas @ 2003-07-30 21:28 UTC (permalink / raw)
To: linux kernel mailing list; +Cc: Andrew Morton
This patch backs out a little section which isn't quite right and
just might in the wrong circumstances cause unfairness. Goes on
top of O11.1
Con
--- linux-2.6.0-test2-mm1/kernel/sched.c 2003-07-30 20:26:08.000000000 +1000
+++ linux-2.6.0-test2mm1O11/kernel/sched.c 2003-07-30 20:26:45.000000000 +1000
@@ -1292,16 +1292,7 @@ void scheduler_tick(int user_ticks, int
if (!TASK_INTERACTIVE(p) || EXPIRED_STARVING(rq)) {
if (!rq->expired_timestamp)
rq->expired_timestamp = jiffies;
- /*
- * Long term interactive tasks need to completely
- * run out of sleep_avg to be expired, and when they
- * do they are put at the start of the expired array
- */
- if (unlikely(p->interactive_credit && p->sleep_avg)){
- enqueue_task(p, rq->active);
- goto out_unlock;
- }
- enqueue_task(p, rq->expired);
+ enqueue_task(p, rq->expired);
} else
enqueue_task(p, rq->active);
} else if (p->mm && !((task_timeslice(p) - p->time_slice) %
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-30 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-30 21:28 [PATCH] O11.2int for interactivity Con Kolivas
2003-07-30 21:21 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox