Commit 58838cf3 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

sched: clean up compiler warning

Reported-by: default avatarDaniel Walker <dwalker@mvista.com>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 422037ba
...@@ -253,7 +253,7 @@ static int do_balance_runtime(struct rt_rq *rt_rq) ...@@ -253,7 +253,7 @@ static int do_balance_runtime(struct rt_rq *rt_rq)
diff = iter->rt_runtime - iter->rt_time; diff = iter->rt_runtime - iter->rt_time;
if (diff > 0) { if (diff > 0) {
do_div(diff, weight); diff = div_u64((u64)diff, weight);
if (rt_rq->rt_runtime + diff > rt_period) if (rt_rq->rt_runtime + diff > rt_period)
diff = rt_period - rt_rq->rt_runtime; diff = rt_period - rt_rq->rt_runtime;
iter->rt_runtime -= diff; iter->rt_runtime -= diff;
......
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