Skip to contentSkip to conversation

x86: Convert CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to Kconfig

PATCH New Bin Meng 1 participant 4 messages Aug 17, 2017 – Aug 24, 2017 x86

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/2 x86: Convert CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to Kconfig

This converts CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to a Kconfig option.

---

 arch/x86/Kconfig             | 7 +++++++
 arch/x86/cpu/turbo.c         | 2 +-
 scripts/config_whitelist.txt | 1 -
 3 files changed, 8 insertions(+), 2 deletions(-)
arch/x86/Kconfig +7 -0
index c26710b..8d40f89 100644
@@ -520,6 +520,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
arch/x86/cpu/turbo.c +1 -1
index bbd255e..c0bff75 100644
@@ -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;
scripts/config_whitelist.txt +0 -1
index db28457..138fb0c 100644
@@ -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
Signature · 1 line
2.9.2
author
#1 lore raw

PATCH 1/2 x86: Convert CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to Kconfig

Quoted 10 lines · Bin Meng

This converts CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED to a Kconfig option.

---

 arch/x86/Kconfig             | 7 +++++++
 arch/x86/cpu/turbo.c         | 2 +-
 scripts/config_whitelist.txt | 1 -
 3 files changed, 8 insertions(+), 2 deletions(-)

applied to u-boot-x86, thanks!

author
#2 lore raw

PATCH 2/2 x86: baytrail: Fix turbo enable

In reply to Bin Meng

CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED must be turned on for Baytrail.

---

 arch/x86/cpu/baytrail/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/x86/cpu/baytrail/Kconfig +1 -0
index 9374c12..9f9c924 100644
@@ -8,6 +8,7 @@ config INTEL_BAYTRAIL
 	bool
 	select HAVE_FSP if !EFI
 	select ARCH_MISC_INIT if !EFI
+	select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED
 	imply HAVE_INTEL_ME if !EFI
 	imply ENABLE_MRC_CACHE
 	imply ENV_IS_IN_SPI_FLASH
Signature · 1 line
2.9.2
author
#3 lore raw

PATCH 2/2 x86: baytrail: Fix turbo enable

Quoted 8 lines · Bin Meng

CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED must be turned on for Baytrail.

---

 arch/x86/cpu/baytrail/Kconfig | 1 +
 1 file changed, 1 insertion(+)

applied to u-boot-x86, thanks!