Hello,
Under the kernel 2.6.x,the jiffies is defined as u64.We cannot count
on it to overflow.
Do we still need the functions to solve this problem?
Thank you.
On Tue, 27 Dec 2005, jeff shia wrote:
> Under the kernel 2.6.x,the jiffies is defined as u64.We cannot count
> on it to overflow.
Actually, no. jiffies is still defined as unsigned long, which reduces
overhead where 64 bit jiffies are not needed. Only jiffies_64 is an u64.
> Do we still need the functions to solve this problem?
Yes.
Tim
On Tue, Dec 27, 2005 at 11:32:41AM +0800, jeff shia wrote:
> Hello,
>
> Under the kernel 2.6.x,the jiffies is defined as u64.We cannot count
> on it to overflow.
You can guarantee it will overflow within a few minutes of booting.
This is done deliberatly to catch jiffy-wrap bugs.
> Do we still need the functions to solve this problem?
yes.
Dave