1 Set the effective priority of idleprio tasks to that of nice 19 tasks when
2 modifying vm reclaim behaviour.
4 Signed-off-by: Con Kolivas <kernel@kolivas.org>
6 include/linux/sched.h | 2 +-
8 2 files changed, 3 insertions(+), 1 deletion(-)
10 Index: linux-2.6.34-ck1/mm/vmscan.c
11 ===================================================================
12 --- linux-2.6.34-ck1.orig/mm/vmscan.c 2010-05-18 12:26:16.942194964 +1000
13 +++ linux-2.6.34-ck1/mm/vmscan.c 2010-05-18 12:26:17.090444482 +1000
14 @@ -1711,6 +1711,8 @@ static inline int effective_sc_prio(stru
18 + if (p->policy == SCHED_IDLEPRIO)
23 Index: linux-2.6.34-ck1/include/linux/sched.h
24 ===================================================================
25 --- linux-2.6.34-ck1.orig/include/linux/sched.h 2010-05-18 12:26:16.086194917 +1000
26 +++ linux-2.6.34-ck1/include/linux/sched.h 2010-05-18 12:26:17.091445870 +1000
29 /* SCHED_ISO: Implemented on BFS only */
31 +#define SCHED_IDLEPRIO SCHED_IDLE
32 #ifdef CONFIG_SCHED_BFS
34 -#define SCHED_IDLEPRIO SCHED_IDLE
35 #define SCHED_MAX (SCHED_IDLEPRIO)
36 #define SCHED_RANGE(policy) ((policy) <= SCHED_MAX)