Peter Zijlstra 157124c11f sched: fix warning in hrtick_start_fair()
Benjamin Herrenschmidt reported:

> I get that on ppc64 ...
>
> In file included from kernel/sched.c:1595:
> kernel/sched_fair.c: In function ‘hrtick_start_fair’:
> kernel/sched_fair.c:902: warning: comparison of distinct pointer types lacks a cast
>
> Probably harmless but annoying.

s64 delta = slice - ran;

-->	delta = max(10000LL, delta);

Probably ppc64's s64 is long vs long long..

I think hpa was looking at sanitizing all these 64bit types across the
architectures.

Use max_t with an explicit type meanwhile.

Reported-by: Benjamin Herrenschmid <benh@kernel.crashing.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-07-28 12:01:58 +02:00
..
2008-07-26 12:00:07 -07:00
2008-07-27 09:58:20 -07:00
2008-07-23 17:47:32 -07:00
2008-07-25 10:53:38 -07:00
2008-07-26 20:53:20 -04:00
2008-07-26 12:00:04 -07:00
2008-06-24 10:52:55 -05:00
2008-07-26 12:00:09 -07:00
2008-07-02 15:06:24 -06:00
2008-07-25 10:53:29 -07:00
2008-07-26 12:00:09 -07:00
2008-07-26 12:00:09 -07:00
2008-07-26 12:00:09 -07:00
2008-07-26 12:00:04 -07:00
2008-07-25 10:53:45 -07:00
2008-07-27 09:45:34 -07:00