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

Go to the source code of this file.

Macros

#define TSC_DEFAULT_FREQ_MHZ   4000
 

Functions

unsigned long tsc_freq_mhz (void)
 

Variables

static unsigned long mhz
 

Macro Definition Documentation

◆ TSC_DEFAULT_FREQ_MHZ

#define TSC_DEFAULT_FREQ_MHZ   4000

Definition at line 12 of file tsc_freq.c.

Function Documentation

◆ tsc_freq_mhz()

unsigned long tsc_freq_mhz ( void  )

Definition at line 14 of file tsc_freq.c.

References BIOS_ERR, die(), msr_struct::hi, msr_struct::lo, mhz, printk, PS_LIM_REG, PSTATE_0_MSR, rdmsr(), and TSC_DEFAULT_FREQ_MHZ.

Here is the call graph for this function:

Variable Documentation

◆ mhz

unsigned long mhz
static

Definition at line 8 of file tsc_freq.c.

Referenced by clock_configure_plld(), clock_display(), ddr_to_mhz(), and tsc_freq_mhz().