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

Go to the source code of this file.

Functions

void timer_monotonic_get (struct mono_time *mt)
 
uint64_t timestamp_get (void)
 

Function Documentation

◆ timer_monotonic_get()

void timer_monotonic_get ( struct mono_time mt)

Definition at line 8 of file monotonic_timer.c.

References mono_time_set_usecs(), and timestamp_get().

Here is the call graph for this function:

◆ timestamp_get()

uint64_t timestamp_get ( void  )

Definition at line 13 of file monotonic_timer.c.

References rdtscll(), and tsc_freq_mhz().

Referenced by timer_monotonic_get().

Here is the call graph for this function:
Here is the caller graph for this function: