diff options
-rw-r--r-- | kernel/sched_fair.c | 2 |
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 | ||
297 | static inline void | 297 | static inline void |