lkml.org 
[lkml]   [2006]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[ckpatch][24/29] mm-idleprio_prio.patch
Date
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-18 09:38    [W:0.030 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site