diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2017-08-17 11:10:42 +0300 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2017-08-24 06:00:47 +0300 |
commit | 2ddb1a177ada3b9edd327fe7e74e4891e462a6f0 (patch) | |
tree | fc3c64ca7f959f2fa674258ed007be52f229ef18 | |
parent | 5091a8b04d842b67a8a39475cf7807c09c347af0 (diff) | |
download | u-boot-2ddb1a177ada3b9edd327fe7e74e4891e462a6f0.tar.xz |
x86: Convert CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to Kconfig
This converts CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to a Kconfig option.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r-- | arch/x86/Kconfig | 7 | ||||
-rw-r--r-- | arch/x86/cpu/turbo.c | 2 | ||||
-rw-r--r-- | scripts/config_whitelist.txt | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 5373082957..277c3babf3 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -529,6 +529,13 @@ config AP_STACK_SIZE the memory used by this initialisation process. Typically 4KB is enough space. +config CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED + bool + help + This option indicates that the turbo mode setting is not package + scoped. i.e. turbo_enable() needs to be called on not just the + bootstrap processor (BSP). + config HAVE_VGA_BIOS bool "Add a VGA BIOS image" help diff --git a/arch/x86/cpu/turbo.c b/arch/x86/cpu/turbo.c index bbd255efc0..c0bff75c4f 100644 --- a/arch/x86/cpu/turbo.c +++ b/arch/x86/cpu/turbo.c @@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR; -#if CONFIG_CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED +#ifdef CONFIG_CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED static inline int get_global_turbo_state(void) { return TURBO_UNKNOWN; diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 0a751e4a91..d8710958a3 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -338,7 +338,6 @@ CONFIG_CPU_HAS_PREFETCH CONFIG_CPU_HAS_SMARTMIPS CONFIG_CPU_HAS_SR_RB CONFIG_CPU_HAS_WB -CONFIG_CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED CONFIG_CPU_LITTLE_ENDIAN CONFIG_CPU_MICROMIPS CONFIG_CPU_MIPSR2 |