From: Peter Zijlstra Date: Thu, 24 Jul 2008 10:43:13 +0000 (+0200) Subject: sched: clean up compiler warning X-Git-Tag: v2.6.27-rc1~515^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=58838cf3ca3337d76141c33d6c68376490263468;p=linux-2.6-omap-h63xx.git sched: clean up compiler warning Reported-by: Daniel Walker Signed-off-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 147004c651c..93ac8ee0827 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c @@ -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;