coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
turbo.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CPUID_LEAF_PM   6
 
#define PM_CAP_TURBO_MODE   (1 << 1)
 
#define MONITOR_MWAIT_DIS_MASK   0x40000
 
#define H_MISC_DISABLE_TURBO   (1 << 6)
 

Enumerations

enum  { TURBO_UNKNOWN , TURBO_UNAVAILABLE , TURBO_DISABLED , TURBO_ENABLED }
 

Functions

int get_turbo_state (void)
 
void enable_turbo (void)
 
void disable_turbo (void)
 

Macro Definition Documentation

◆ CPUID_LEAF_PM

#define CPUID_LEAF_PM   6

Definition at line 6 of file turbo.h.

◆ H_MISC_DISABLE_TURBO

#define H_MISC_DISABLE_TURBO   (1 << 6)

Definition at line 12 of file turbo.h.

◆ MONITOR_MWAIT_DIS_MASK

#define MONITOR_MWAIT_DIS_MASK   0x40000

Definition at line 10 of file turbo.h.

◆ PM_CAP_TURBO_MODE

#define PM_CAP_TURBO_MODE   (1 << 1)

Definition at line 7 of file turbo.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TURBO_UNKNOWN 
TURBO_UNAVAILABLE 
TURBO_DISABLED 
TURBO_ENABLED 

Definition at line 14 of file turbo.h.

Function Documentation

◆ disable_turbo()

void disable_turbo ( void  )

Definition at line 108 of file turbo.c.

References get_turbo_state(), H_MISC_DISABLE_TURBO, msr_struct::hi, IA32_MISC_ENABLE, rdmsr(), TURBO_ENABLED, update_turbo_state(), and wrmsr().

Referenced by devtree_update(), and soc_core_init().

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

◆ enable_turbo()

void enable_turbo ( void  )

Definition at line 89 of file turbo.c.

References get_turbo_state(), H_MISC_DISABLE_TURBO, msr_struct::hi, IA32_MISC_ENABLE, rdmsr(), TURBO_DISABLED, update_turbo_state(), and wrmsr().

Referenced by cpu_core_init(), model_2065x_init(), model_206ax_init(), pre_mp_init(), and soc_core_init().

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

◆ get_turbo_state()

int get_turbo_state ( void  )

Definition at line 75 of file turbo.c.

References get_global_turbo_state(), TURBO_UNKNOWN, and update_turbo_state().

Referenced by cpu_set_max_ratio(), disable_turbo(), enable_turbo(), generate_P_state_entries(), generate_p_state_entries(), set_max_ratio(), set_max_turbo_freq(), and soc_power_states_generation().

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