2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 #ifndef _CPU_INTEL_TURBO_H
23 #define _CPU_INTEL_TURBO_H
25 #define CPUID_LEAF_PM 6
26 #define PM_CAP_TURBO_MODE (1 << 1)
28 #define MSR_IA32_MISC_ENABLES 0x1a0
29 #define H_MISC_DISABLE_TURBO (1 << 6)
38 /* Return current turbo state */
39 int get_turbo_state(void);
42 void enable_turbo(void);