diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-07-24 12:43:13 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-24 13:24:57 +0200 |
commit | 58838cf3ca3337d76141c33d6c68376490263468 (patch) | |
tree | 0254542f073d3b2a4e4f1a05269d2d3f521bbcc3 /kernel | |
parent | 422037bafde8083acc3c539ceba3dfc60a04110c (diff) | |
download | blackbird-op-linux-58838cf3ca3337d76141c33d6c68376490263468.tar.gz blackbird-op-linux-58838cf3ca3337d76141c33d6c68376490263468.zip |
sched: clean up compiler warning
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched_rt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 147004c651c0..93ac8ee08271 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; |