Re: Exporting calibrate_delay()

From: Russell King (rmk@arm.linux.org.uk)
Date: Fri Aug 25 2000 - 04:24:07 EST


Alan Cox writes:
> > driver loads so I can just plug in a new value for loops_per_sec
> > at a clock speed change. If I disable all interrupts while
> > recalibrating it shouldn't hurt udelay, right?
>
> That sounds right

Except for one subtle point - what are we calibrating the delay loop
against? The timer interrupt!

Therefore, its not possible to recalibrate with interrupts disabled.
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:15 EST