aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-09-05 08:32:49 -0400
committerIngo Molnar <mingo@elte.hu>2007-09-05 08:32:49 -0400
commita0dc72601d48b171b4870dfdd0824901a2b2b1a9 (patch)
tree25a8ee03d5d85f8138af5c6df558646989357376 /kernel
parent7fd0d2dde929ead79901e389e70dbfb3c6c06986 (diff)
sched: fix niced_granularity() shift
fix niced_granularity(). This resulted in under-scheduling for CPU-bound negative nice level tasks (and this in turn caused higher than necessary latencies in nice-0 tasks). Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched_fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index ce39282d9c0d..810b52d994e0 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -291,7 +291,7 @@ niced_granularity(struct sched_entity *curr, unsigned long granularity)
291 /* 291 /*
292 * It will always fit into 'long': 292 * It will always fit into 'long':
293 */ 293 */
294 return (long) (tmp >> WMULT_SHIFT); 294 return (long) (tmp >> (WMULT_SHIFT-NICE_0_SHIFT));
295} 295}
296 296
297static inline void 297static inline void