public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [ckpatch][24/29] mm-idleprio_prio.patch
@ 2006-06-18  7:34 Con Kolivas
  0 siblings, 0 replies; only message in thread
From: Con Kolivas @ 2006-06-18  7:34 UTC (permalink / raw)
  To: linux list; +Cc: ck list

Set the effective priority of idleprio tasks to that of nice 19 tasks when
modifying vm reclaim behaviour.

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

 mm/vmscan.c |    2 ++
 1 files changed, 2 insertions(+)

Index: linux-ck-dev/mm/vmscan.c
===================================================================
--- linux-ck-dev.orig/mm/vmscan.c	2006-06-18 15:25:07.000000000 +1000
+++ linux-ck-dev/mm/vmscan.c	2006-06-18 15:25:09.000000000 +1000
@@ -911,6 +911,8 @@ static int effective_sc_prio(struct task
 	if (likely(p->mm)) {
 		if (rt_task(p))
 			return -20;
+		if (idleprio_task(p))
+			return 19;
 		return task_nice(p);
 	}
 	return 0;

-- 
-ck

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

only message in thread, other threads:[~2006-06-18  7:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-18  7:34 [ckpatch][24/29] mm-idleprio_prio.patch Con Kolivas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox