Re: something about jiffies wraparound overflow

From: Ben Collins
Date: Tue Dec 27 2005 - 10:00:26 EST


On Tue, 2005-12-27 at 12:46 +0800, jeff shia wrote:
> 1.why the macros of time_after can solve the jiffies wraparound problem?

Basically it assumes that the two values you are comparing will never be
more than MAX_ULONG/2 apart. Which for jiffies means 270 some odd days
on 32-bit platforms.

--
Ben Collins <ben.collins@xxxxxxxxxx>
Developer
Ubuntu Linux

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