Linux-kernel mailing list archive 1998-42,: Re: [patch] jiffies wraparound [Re: 2.1.125 Show stopper list: Draft]

# 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)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Malware: "Re: Dynamic IP hack (PR#294)"
- Previous message: Tim Smith: "Re: [patch] jiffies wraparound [Re: 2.1.125 Show stopper list: Draft]"
- Next in thread: MOLNAR Ingo: "Re: [patch] jiffies wraparound [Re: 2.1.125 Show stopper list: Draft]"
- Reply: MOLNAR Ingo: "Re: [patch] jiffies wraparound [Re: 2.1.125 Show stopper list: Draft]"

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/

- Next message: Malware: "Re: Dynamic IP hack (PR#294)"
- Previous message: Tim Smith: "Re: [patch] jiffies wraparound [Re: 2.1.125 Show stopper list: Draft]"
- Next in thread: MOLNAR Ingo: "Re: [patch] jiffies wraparound [Re: 2.1.125 Show stopper list: Draft]"
- Reply: MOLNAR Ingo: "Re: [patch] jiffies wraparound [Re: 2.1.125 Show stopper list: Draft]"