Skip to content

Commit

Permalink
sched: clean up compiler warning
Browse files Browse the repository at this point in the history
Reported-by: Daniel Walker <dwalker@mvista.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jul 24, 2008
1 parent 422037b commit 58838cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static int do_balance_runtime(struct rt_rq *rt_rq)

diff = iter->rt_runtime - iter->rt_time;
if (diff > 0) {
do_div(diff, weight);
diff = div_u64((u64)diff, weight);
if (rt_rq->rt_runtime + diff > rt_period)
diff = rt_period - rt_rq->rt_runtime;
iter->rt_runtime -= diff;
Expand Down

0 comments on commit 58838cf

Please sign in to comment.