Contents of /trunk/kernel26-magellan/patches-2.6.20-r2/0021-2.6.20-mm-idleprio_prio.patch
Parent Directory | Revision Log
Revision 108 -
(show annotations)
(download)
Mon Mar 12 00:20:28 2007 UTC (17 years, 3 months ago) by niro
File size: 660 byte(s)
Mon Mar 12 00:20:28 2007 UTC (17 years, 3 months ago) by niro
File size: 660 byte(s)
ver bump to 2.6.20-r2; - using linux-2.6.20.2 - 2.6.20-ck1 patch set - 8.34.8 ati-drivers - 1.0-9755 nvidia-drivers - 1.2.0 ipw-drivers - squashfs-3.0 support - vesafb-tng 1.0-rc2 - fbsplash-0.9.2-r5 for linux-2.6.20-rc6 - removed zd1211 drivers (now in upstream tree) - disabled paravirt_ops for sake of non gpl video drivers
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.20-ck1/mm/vmscan.c |
10 | =================================================================== |
11 | --- linux-2.6.20-ck1.orig/mm/vmscan.c 2007-02-16 19:01:34.000000000 +1100 |
12 | +++ linux-2.6.20-ck1/mm/vmscan.c 2007-02-16 19:01:34.000000000 +1100 |
13 | @@ -977,6 +977,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; |