On Tuesday 07 February 2006 20:14, Ingo Molnar wrote:
> 
> * Luck, Tony <[EMAIL PROTECTED]> wrote:
> 
> > On Tue, Feb 07, 2006 at 07:29:24PM +0100, Andi Kleen wrote:
> > > For this case that would be ok, as long as it isn't a hour or so,
> > > but let's say < 1 minute.
> > 
> > About 9.7 seconds on ia64 for:
> > 
> >     for (i = 0; i < loops_per_jiffy * HZ; i++) {
> >             __delay(1);
> >     }
> > 
> > so yes, well under a minute.
> 
> yeah, that's good enough. We want to have a minimum delay of 1 second, 
> because otherwise we'd be getting false positives under high load (and 
> under some bad drivers). Having a larger delay is not an issue, as long 
> as it's below the average hit-reset latency of users ;)

This reminds me - if we can find a cheaper way than __delay(1) it 
would be actually quite reasonable to do a timeout in the non debug
spinlock. Since it's always out of line it doesn't matter if the code
is bigger and spinning cycles are free anyways, so some checks there
wouldn't matter.

Maybe go through a 32bit counter to overflow a few times? A

It's probably better longer than a second by default.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to