Annotation of /trunk/kernel26-alx/patches-2.6.21-r13/0018-2.6.21-mm-idleprio_prio.patch
Parent Directory | Revision Log
Revision 445 -
(hide annotations)
(download)
Tue Jan 15 00:44:37 2008 UTC (16 years, 8 months ago) by niro
File size: 660 byte(s)
Tue Jan 15 00:44:37 2008 UTC (16 years, 8 months ago) by niro
File size: 660 byte(s)
-added patches for 2.6.21-alx-r13
1 | niro | 445 | 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 file changed, 2 insertions(+) | ||
8 | |||
9 | Index: linux-2.6.21-ck2/mm/vmscan.c | ||
10 | =================================================================== | ||
11 | --- linux-2.6.21-ck2.orig/mm/vmscan.c 2007-05-14 19:49:56.000000000 +1000 | ||
12 | +++ linux-2.6.21-ck2/mm/vmscan.c 2007-05-14 19:49:56.000000000 +1000 | ||
13 | @@ -980,6 +980,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; |