All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [sched-int-changes 4/5] requeue_granularity
@ 2004-11-06 10:37 Con Kolivas
  0 siblings, 0 replies; only message in thread
From: Con Kolivas @ 2004-11-06 10:37 UTC (permalink / raw)
  To: linux; +Cc: Andrew Morton, Ingo Molnar


[-- Attachment #1.1: Type: text/plain, Size: 64 bytes --]

requeue_granularity

Please include in at least 2 -mm releases


[-- Attachment #1.2: sched-requeue_granularity.diff --]
[-- Type: text/x-patch, Size: 834 bytes --]

Change the granularity code to requeue tasks at their best priority
instead of changing priority while they're running. This keeps tasks at
their top interactive level during their whole timeslice.

Signed-off-by: Con Kolivas <kernel@kolivas.org>

Index: linux-2.6.10-rc1-mm3/kernel/sched.c
===================================================================
--- linux-2.6.10-rc1-mm3.orig/kernel/sched.c	2004-11-05 20:57:14.376900024 +1100
+++ linux-2.6.10-rc1-mm3/kernel/sched.c	2004-11-05 20:58:30.467178052 +1100
@@ -2506,10 +2506,8 @@ void scheduler_tick(void)
 			(p->time_slice >= TIMESLICE_GRANULARITY(p)) &&
 			(p->array == rq->active)) {
 
-			dequeue_task(p, rq->active);
+			requeue_task(p, rq->active);
 			set_tsk_need_resched(p);
-			p->prio = effective_prio(p);
-			enqueue_task(p, rq->active);
 		}
 	}
 out_unlock:


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-06 10:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-06 10:37 [PATCH] [sched-int-changes 4/5] requeue_granularity Con Kolivas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.