Contents of /trunk/kernel26-magellan/patches-2.6.21-r1/0018-2.6.21-mm-idleprio_prio.patch
Parent Directory | Revision Log
Revision 196 -
(show annotations)
(download)
Thu May 17 23:20:52 2007 UTC (17 years, 4 months ago) by niro
File size: 660 byte(s)
Thu May 17 23:20:52 2007 UTC (17 years, 4 months ago) by niro
File size: 660 byte(s)
-ver bump to 2.6.21-r1 using: -linux-2.6.21.1 -2.6.21-ck2 patchset -fbsplash-0.9.2-r5 -vesafb-tng-1.0-rc2 -squashfs-3.2-r2 -unionfs-2.0-u2 -suspend2-2.2.9.17 -linux-phc-0.2.10 -acpi-dsdt-0.8.4 -fuse-2.6.5 -reiser4-mm -nvidia-drivers-1.0.9755 -ati-drivers-8.36.5 -ipw3945-1.2.1 - added a fix for sis900 oops on linux-2.6.21
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 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; |