Commit a69edb55 authored by Ingo Molnar's avatar Ingo Molnar

sched: fix update_stats_enqueue() reniced codepath

the key has to be rescaled to /weight even if it has a positive value.

(this change only affects the scheduling of reniced tasks)
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 194081eb
...@@ -405,7 +405,8 @@ static void update_stats_enqueue(struct cfs_rq *cfs_rq, struct sched_entity *se) ...@@ -405,7 +405,8 @@ static void update_stats_enqueue(struct cfs_rq *cfs_rq, struct sched_entity *se)
(WMULT_SHIFT - NICE_0_SHIFT); (WMULT_SHIFT - NICE_0_SHIFT);
} else { } else {
tmp = se->wait_runtime; tmp = se->wait_runtime;
key -= (tmp * se->load.weight) >> NICE_0_SHIFT; key -= (tmp * se->load.inv_weight) >>
(WMULT_SHIFT - NICE_0_SHIFT);
} }
} }
......
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