]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Convert CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to Kconfig
authorBin Meng <bmeng.cn@gmail.com>
Thu, 17 Aug 2017 08:10:42 +0000 (01:10 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 24 Aug 2017 03:00:47 +0000 (11:00 +0800)
This converts CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to a Kconfig option.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/Kconfig
arch/x86/cpu/turbo.c
scripts/config_whitelist.txt

index 537308295714428c151e703bfec4d023ab6bcab2..277c3babf37495623730d8a03e64ca0635a4172c 100644 (file)
@@ -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
index bbd255efc0a54f0b4970aaf46cbf7d13e072dbc1..c0bff75c4f16de23031c2aeef52cee0e5f4178f1 100644 (file)
@@ -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;
index 0a751e4a91c3a7eeb6c4829cd69bab220e1168fc..d8710958a39d8ff0402ee155d325e806bcdb7140 100644 (file)
@@ -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