Re: typecast bug in sched.c bites reschedule_idle on alpha

From: Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Date: Thu Jul 17 2003 - 17:20:43 EST


On Thu, Jul 17, 2003 at 04:51:39PM -0500, Andy Isaacson wrote:
> Since asm-alpha/timex.h defines cycles_t as unsigned int, this
> comparison is always false. Changing it to (cycles_t)-1 fixes the
> problem.

Nice catch, Andy. Thanks.

Ivan.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:31 EST