coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
turbo.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _CPU_INTEL_TURBO_H
4 #define _CPU_INTEL_TURBO_H
5 
6 #define CPUID_LEAF_PM 6
7 #define PM_CAP_TURBO_MODE (1 << 1)
8 
9 /* Disable the Monitor Mwait FSM feature */
10 #define MONITOR_MWAIT_DIS_MASK 0x40000
11 
12 #define H_MISC_DISABLE_TURBO (1 << 6)
13 
14 enum {
19 };
20 
21 /* Return current turbo state */
22 int get_turbo_state(void);
23 
24 /* Enable turbo */
25 void enable_turbo(void);
26 
27 /* Disable turbo */
28 void disable_turbo(void);
29 
30 #endif
int get_turbo_state(void)
Definition: turbo.c:75
void disable_turbo(void)
Definition: turbo.c:108
void enable_turbo(void)
Definition: turbo.c:89
@ TURBO_UNKNOWN
Definition: turbo.h:15
@ TURBO_UNAVAILABLE
Definition: turbo.h:16
@ TURBO_DISABLED
Definition: turbo.h:17
@ TURBO_ENABLED
Definition: turbo.h:18