Skip to contentSkip to conversation

cpufreq / boost: Remove CONFIG_CPU_FREQ_BOOST_SW Kconfig option

PATCH In review Yue Hu 3 participants 3 messages Apr 10, 2019 – May 1, 2019 CPU frequency scaling framework

lore
Share & tools
lore

Yue Hu

author
#0 lore raw

PATCH 1/1 cpufreq / boost: Remove CONFIG_CPU_FREQ_BOOST_SW Kconfig option

From: Yue Hu <[email protected]>

Commit 2fb4719b2560 ("cpufreq / boost: Kconfig: Support for software-managed BOOST") added the CONFIG_CPU_FREQ_BOOST_SW config. However EXYNOS based cpufreq drivers have been removed because of switching to cpufreq-dt driver which will set boost-attr if required.

So, let's remove this option and update cpufreq_generic_attr[].

---
 drivers/cpufreq/Kconfig      | 4 ----
 drivers/cpufreq/freq_table.c | 3 ---
 2 files changed, 7 deletions(-)
drivers/cpufreq/Kconfig +0 -4
index b22e6bb..4d2b33a 100644
@@ -26,10 +26,6 @@ config CPU_FREQ_GOV_COMMON
 	select IRQ_WORK
 	bool
 
-config CPU_FREQ_BOOST_SW
-	bool
-	depends on THERMAL
-
 config CPU_FREQ_STAT
 	bool "CPU frequency transition statistics"
 	help
drivers/cpufreq/freq_table.c +0 -3
index 3a8cc99..e7be0af 100644
@@ -290,9 +290,6 @@ static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy,
 
 struct freq_attr *cpufreq_generic_attr[] = {
 	&cpufreq_freq_attr_scaling_available_freqs,
-#ifdef CONFIG_CPU_FREQ_BOOST_SW
-	&cpufreq_freq_attr_scaling_boost_freqs,
-#endif
 	NULL,
 };
 EXPORT_SYMBOL_GPL(cpufreq_generic_attr);
Signature · 1 line
1.9.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 35 lines · Yue Hu

From: Yue Hu <[email protected]>

Commit 2fb4719b2560 ("cpufreq / boost: Kconfig: Support for software-managed BOOST") added the CONFIG_CPU_FREQ_BOOST_SW config. However EXYNOS based cpufreq drivers have been removed because of switching to cpufreq-dt driver which will set boost-attr if required.

So, let's remove this option and update cpufreq_generic_attr[].

---
 drivers/cpufreq/Kconfig      | 4 ----
 drivers/cpufreq/freq_table.c | 3 ---
 2 files changed, 7 deletions(-)
drivers/cpufreq/Kconfig +0 -4
index b22e6bb..4d2b33a 100644
@@ -26,10 +26,6 @@ config CPU_FREQ_GOV_COMMON
 	select IRQ_WORK
 	bool
 
-config CPU_FREQ_BOOST_SW
-	bool
-	depends on THERMAL
-
 config CPU_FREQ_STAT
 	bool "CPU frequency transition statistics"
 	help
drivers/cpufreq/freq_table.c +0 -0
index 3a8cc99..e7be0af 100644

drivers/cpufreq/freq_table.c static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy, · line 295

Quoted 9 lines
drivers/cpufreq/freq_table.c +0 -3
@@ -290,9 +290,6 @@ static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy,
 
 struct freq_attr *cpufreq_generic_attr[] = {
 	&cpufreq_freq_attr_scaling_available_freqs,
-#ifdef CONFIG_CPU_FREQ_BOOST_SW
-	&cpufreq_freq_attr_scaling_boost_freqs,
-#endif
 	NULL,
 };
 EXPORT_SYMBOL_GPL(cpufreq_generic_attr);
Signature · 1 line
viresh
#2 lore raw
Quoted 37 lines · CEST Viresh Kumar
Quoted 36 lines · Yue Hu

From: Yue Hu <[email protected]>

Commit 2fb4719b2560 ("cpufreq / boost: Kconfig: Support for software-managed BOOST") added the CONFIG_CPU_FREQ_BOOST_SW config. However EXYNOS based cpufreq drivers have been removed because of switching to cpufreq-dt driver which will set boost-attr if required.

So, let's remove this option and update cpufreq_generic_attr[].

---
 drivers/cpufreq/Kconfig      | 4 ----
 drivers/cpufreq/freq_table.c | 3 ---
 2 files changed, 7 deletions(-)
drivers/cpufreq/Kconfig +0 -4
index b22e6bb..4d2b33a 100644
@@ -26,10 +26,6 @@ config CPU_FREQ_GOV_COMMON
 	select IRQ_WORK
 	bool
 
-config CPU_FREQ_BOOST_SW
-	bool
-	depends on THERMAL
-
 config CPU_FREQ_STAT
 	bool "CPU frequency transition statistics"
 	help
drivers/cpufreq/freq_table.c +0 -0
index 3a8cc99..e7be0af 100644
@@ -290,9 +290,6 @@ static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy,
 
Quoted 10 lines

drivers/cpufreq/freq_table.c static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy, · line 295

Quoted 8 lines
drivers/cpufreq/freq_table.c +0 -3
 struct freq_attr *cpufreq_generic_attr[] = {
 	&cpufreq_freq_attr_scaling_available_freqs,
-#ifdef CONFIG_CPU_FREQ_BOOST_SW
-	&cpufreq_freq_attr_scaling_boost_freqs,
-#endif
 	NULL,
 };
 EXPORT_SYMBOL_GPL(cpufreq_generic_attr);

Patch applied, thanks!