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

Go to the source code of this file.

Functions

int get_cpu_count (void)
 
unsigned int get_threads_per_core (void)
 
void set_cstate_io_addr (void)
 

Function Documentation

◆ get_cpu_count()

int get_cpu_count ( void  )

Definition at line 10 of file cpu.c.

References cpuid_ecx().

Here is the call graph for this function:

◆ get_threads_per_core()

unsigned int get_threads_per_core ( void  )

Definition at line 15 of file cpu.c.

References cpuid_ebx(), CPUID_EBX_CORE_ID, CPUID_EBX_THREADS_MASK, and CPUID_EBX_THREADS_SHIFT.

Referenced by generate_cpu_entries(), mainboard_get_dxio_ddi_descriptors(), and variant_update_ddi_descriptors().

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

◆ set_cstate_io_addr()

void set_cstate_io_addr ( void  )

Definition at line 21 of file cpu.c.

References ACPI_CPU_CONTROL, msr_struct::hi, msr_struct::lo, MSR_CSTATE_ADDRESS, and wrmsr().

Here is the call graph for this function: