Magellan Linux

Contents of /trunk/kernel26-alx/patches-2.6.17-r6/0024-2.6.17-mm-idleprio_prio.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 199 - (show annotations) (download)
Fri May 18 11:04:36 2007 UTC (16 years, 11 months ago) by niro
File size: 649 byte(s)
-import

1 Set the effective priority of idleprio tasks to that of nice 19 tasks when
2 modifying vm reclaim behaviour.
3
4 Signed-off-by: Con Kolivas <kernel@kolivas.org>
5
6 mm/vmscan.c | 2 ++
7 1 files changed, 2 insertions(+)
8
9 Index: linux-ck-dev/mm/vmscan.c
10 ===================================================================
11 --- linux-ck-dev.orig/mm/vmscan.c 2006-06-18 15:25:07.000000000 +1000
12 +++ linux-ck-dev/mm/vmscan.c 2006-06-18 15:25:09.000000000 +1000
13 @@ -911,6 +911,8 @@ static int effective_sc_prio(struct task
14 if (likely(p->mm)) {
15 if (rt_task(p))
16 return -20;
17 + if (idleprio_task(p))
18 + return 19;
19 return task_nice(p);
20 }
21 return 0;