Messages in this thread | | | Date | Thu, 21 Aug 2008 08:15:12 +0200 | From | Ingo Molnar <> | Subject | Re: VolanoMark regression with 2.6.27-rc1 |
| |
* Peter Zijlstra <peterz@infradead.org> wrote:
> Ok, people pointed out I got my promotion rules mixed up, I casted the > result of the division to signed, instead of ending up with a signed > division. > > #define avg(x, y) ({ \ > typeof(x) _avg1 = (x); \ > typeof(y) _avg2 = (y); \ > (void) (&_avg1 == &_avg2); \ > (typeof(x))(_avg1 + ((long long)_avg2 - _avg1)/2); })
ok, could you please just send a patch that is local to sched.c and then we can let this kernel.h change play out independently? There's too many iterations of this and it's better to decouple the two.
Ingo
| |