Debian Codegraph @

src/include/cpu/intel/turbo.h

raw symbols SCIP
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 {
15 TURBO_UNKNOWN,
16 TURBO_UNAVAILABLE,
17 TURBO_DISABLED,
18 TURBO_ENABLED,
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