Re: [patch] jiffies wraparound [Re: 2.1.125 Show stopper list: Draft]

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Sun, 18 Oct 1998 11:56:59 +0200 (MEST)


MOLNAR Ingo wrote:
> the right thing i think is a 'delta' timeout instead of an absolute
> timeout, but this is definitely not a 2.2 issue. Since most places
> artifically add 'jiffies' to some delta timeout anyway before setting
> current->timeout, this looks clean as well.

Hi mingo,

This probably all happened before you were born :-), but we changed
the other way around, exactly because we wanted to avoid the
wraparound issue.

Also:
If I want to have my timer called every second, I do

newtimeout = oldtimeout +HZ;

instead of

deltatimeout = HZ;
.

In the deltatimeout case I get to loose a jiffy every time the timer
is slightly late in executing...

Roger.

-- 
| Most people would die sooner than think....  |    R.E.Wolff@BitWizard.nl 
| in fact, most do.  -- Bertrand Russsell      |     phone: +31-15-2137555 
We write Linux device drivers for any device you may have! fax: ..-2138217

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