Commit a0dc7260 authored by Ingo Molnar's avatar Ingo Molnar

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: default avatarIngo Molnar <mingo@elte.hu>
parent 7fd0d2dd
...@@ -291,7 +291,7 @@ niced_granularity(struct sched_entity *curr, unsigned long granularity) ...@@ -291,7 +291,7 @@ niced_granularity(struct sched_entity *curr, unsigned long granularity)
/* /*
* It will always fit into 'long': * It will always fit into 'long':
*/ */
return (long) (tmp >> WMULT_SHIFT); return (long) (tmp >> (WMULT_SHIFT-NICE_0_SHIFT));
} }
static inline void static inline void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment