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 <soc/pci_devs.h>
#include <device/pci_ops.h>
Include dependency graph for tsc_freq.c:

Go to the source code of this file.

Functions

unsigned long tsc_freq_mhz (void)
 

Function Documentation

◆ tsc_freq_mhz()

unsigned long tsc_freq_mhz ( void  )

Definition at line 10 of file tsc_freq.c.

References CORE_PERF_BOOST_CTRL, die(), msr_struct::hi, msr_struct::lo, pci_read_config32(), PSTATE_0_MSR, rdmsr(), and SOC_PM_DEV.

Here is the call graph for this function: