[coreboot] Memory clock cycles -> microseconds (us)

Peter Stuge peter at stuge.se
Tue Jun 10 00:02:55 CEST 2008

On Mon, Jun 09, 2008 at 05:48:11PM -0400, Joseph Smith wrote:
> On Mon, 9 Jun 2008 23:43:10 +0200, Peter Stuge <peter at stuge.se> wrote:
> > On Mon, Jun 09, 2008 at 03:15:46PM -0400, Joseph Smith wrote:
> >> How hard would it be to add a nanoseconds delay to delay.h?
> > 
> > It would probably have to be a busy wait with compensation for
> > the current CPU frequency.
> I'm not sure what you mean, Peter?

Busy wait is a loop of some number of NOP instructions, as opposed to
relying on some CPU peripheral such as a timer to signal elapsed
time. The number of NOP instructions has to be calculated from the
current CPU frequency.


More information about the coreboot mailing list