f3f36faf35
They're listed in AUTHORS and often incorrect anyway, for example: - What's a "Copyright $year-present"? - Which incarnation of Google (Inc, LLC, ...) is the current copyright holder? - People sometimes have their editor auto-add themselves to files even though they only deleted stuff - Or they let the editor automatically update the copyright year, because why not? - Who is the copyright holder "The coreboot project Authors"? - Or "Generated Code"? Sidestep all these issues by simply not putting these notices in individual files, let's list all copyright holders in AUTHORS instead and use the git history to deal with the rest. Change-Id: I89b10076e0f4a4b3acd59160fb7abe349b228321 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39611 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: David Hendricks <david.hendricks@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
43 lines
994 B
C
43 lines
994 B
C
/*
|
|
* This file is part of the coreboot project.
|
|
*
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; version 2 of
|
|
* the License.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef _CPU_INTEL_TURBO_H
|
|
#define _CPU_INTEL_TURBO_H
|
|
|
|
#define CPUID_LEAF_PM 6
|
|
#define PM_CAP_TURBO_MODE (1 << 1)
|
|
|
|
/* Disable the Monitor Mwait FSM feature */
|
|
#define MONITOR_MWAIT_DIS_MASK 0x40000
|
|
|
|
#define H_MISC_DISABLE_TURBO (1 << 6)
|
|
|
|
enum {
|
|
TURBO_UNKNOWN,
|
|
TURBO_UNAVAILABLE,
|
|
TURBO_DISABLED,
|
|
TURBO_ENABLED,
|
|
};
|
|
|
|
/* Return current turbo state */
|
|
int get_turbo_state(void);
|
|
|
|
/* Enable turbo */
|
|
void enable_turbo(void);
|
|
|
|
/* Disable turbo */
|
|
void disable_turbo(void);
|
|
|
|
#endif
|