lkml.org 
[lkml]   [2008]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [git pull] scheduler updates for v2.6.27, phase #2
From
Date
On Mon, 2008-07-21 at 21:23 +0200, Peter Zijlstra wrote:

> Does this work for you?
>

Yours removed the warning .. I made an alternate one below only compile
tested, your choice..

Signed-off-by: Daniel Walker <dwalker@mvista.com>


diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 47ceac9..febb864 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -242,7 +242,7 @@ static int do_balance_runtime(struct rt_rq *rt_rq)
rt_period = ktime_to_ns(rt_b->rt_period);
for_each_cpu_mask(i, rd->span) {
struct rt_rq *iter = sched_rt_period_rt_rq(rt_b, i);
- s64 diff;
+ u64 diff;

if (iter == rt_rq)
continue;
@@ -252,7 +252,7 @@ static int do_balance_runtime(struct rt_rq *rt_rq)
goto next;

diff = iter->rt_runtime - iter->rt_time;
- if (diff > 0) {
+ if ((s64)(diff) > 0) {
do_div(diff, weight);
if (rt_rq->rt_runtime + diff > rt_period)
diff = rt_period - rt_rq->rt_runtime;



\
 
 \ /
  Last update: 2008-07-21 22:19    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site