Re: PATCH: jiffies is UL
Alan Cox (alan@lxorguk.ukuu.org.uk)
08 Apr 2003 13:01:11 +0100
On Maw, 2003-04-08 at 01:40, Andrew Morton wrote:
> > -#define INITIAL_JIFFIES ((unsigned int) (-300*HZ))
> > +#define INITIAL_JIFFIES ((unsigned long) (-300*HZ))
> >
>
> No, this is deliberate. It triggers a wrap from 0x00000000ffffffff to
> 0x0000000100000000 after 5 minutes uptime on 64-bit machines, which has found
> bugs.
>
> The fix is to add a comment, so this patch stops coming out ;)
I which case it should be ((unsigned long)((unsigned int ....))
so the assignment type is right
-
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/