coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
delay_tsc.c File Reference
#include <arch/cpu.h>
#include <cpu/x86/tsc.h>
#include <delay.h>
#include <thread.h>
Include dependency graph for delay_tsc.c:

Go to the source code of this file.

Functions

void init_timer (void)
 
void udelay (unsigned int us)
 

Function Documentation

◆ init_timer()

void init_timer ( void  )

Definition at line 8 of file delay_tsc.c.

References tsc_freq_mhz(), and void().

Here is the call graph for this function:

◆ udelay()

void udelay ( unsigned int  us)

Definition at line 13 of file delay_tsc.c.

References cpu_relax(), rdtscll(), thread_yield_microseconds(), and tsc_freq_mhz().

Here is the call graph for this function: