summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/turbo.h
blob: 94a63539785578c8e082d28577e697f6f2e5078e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * From coreboot file of the same name
 *
 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
 */

#ifndef _ASM_TURBO_H
#define _ASM_TURBO_H

#define CPUID_LEAF_PM		6
#define PM_CAP_TURBO_MODE	(1 << 1)

enum {
	TURBO_UNKNOWN,
	TURBO_UNAVAILABLE,
	TURBO_DISABLED,
	TURBO_ENABLED,
};

/* Return current turbo state */
int turbo_get_state(void);

/* Enable turbo */
void turbo_enable(void);

#endif