]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: clean up compiler warning
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 24 Jul 2008 10:43:13 +0000 (12:43 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 24 Jul 2008 11:24:57 +0000 (13:24 +0200)
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>
kernel/sched_rt.c

index 147004c651c09dcb44f51cff5f86a67296e77aaa..93ac8ee08271fe0d2bee0ca4ca28bb0d7e06c752 100644 (file)
@@ -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;