diff mbox series

cpufreq / boost: Remove CONFIG_CPU_FREQ_BOOST_SW Kconfig option

Message ID 20190410035952.5728-1-zbestahu@gmail.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show
Series cpufreq / boost: Remove CONFIG_CPU_FREQ_BOOST_SW Kconfig option | expand

Commit Message

Yue Hu April 10, 2019, 3:59 a.m. UTC
From: Yue Hu <huyue2@yulong.com>

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[].

Signed-off-by: Yue Hu <huyue2@yulong.com>
---
 drivers/cpufreq/Kconfig      | 4 ----
 drivers/cpufreq/freq_table.c | 3 ---
 2 files changed, 7 deletions(-)

Comments

Viresh Kumar April 10, 2019, 4:10 a.m. UTC | #1
On 10-04-19, 11:59, Yue Hu wrote:
> From: Yue Hu <huyue2@yulong.com>
> 
> 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[].
> 
> Signed-off-by: Yue Hu <huyue2@yulong.com>
> ---
>  drivers/cpufreq/Kconfig      | 4 ----
>  drivers/cpufreq/freq_table.c | 3 ---
>  2 files changed, 7 deletions(-)
> 
> diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
> index b22e6bb..4d2b33a 100644
> --- a/drivers/cpufreq/Kconfig
> +++ b/drivers/cpufreq/Kconfig
> @@ -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
> diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c
> index 3a8cc99..e7be0af 100644
> --- a/drivers/cpufreq/freq_table.c
> +++ b/drivers/cpufreq/freq_table.c
> @@ -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);

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Rafael J. Wysocki May 1, 2019, 10:20 a.m. UTC | #2
On Wednesday, April 10, 2019 6:10:05 AM CEST Viresh Kumar wrote:
> On 10-04-19, 11:59, Yue Hu wrote:
> > From: Yue Hu <huyue2@yulong.com>
> > 
> > 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[].
> > 
> > Signed-off-by: Yue Hu <huyue2@yulong.com>
> > ---
> >  drivers/cpufreq/Kconfig      | 4 ----
> >  drivers/cpufreq/freq_table.c | 3 ---
> >  2 files changed, 7 deletions(-)
> > 
> > diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
> > index b22e6bb..4d2b33a 100644
> > --- a/drivers/cpufreq/Kconfig
> > +++ b/drivers/cpufreq/Kconfig
> > @@ -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
> > diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c
> > index 3a8cc99..e7be0af 100644
> > --- a/drivers/cpufreq/freq_table.c
> > +++ b/drivers/cpufreq/freq_table.c
> > @@ -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);
> 
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

Patch applied, thanks!
diff mbox series

Patch

diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
index b22e6bb..4d2b33a 100644
--- a/drivers/cpufreq/Kconfig
+++ b/drivers/cpufreq/Kconfig
@@ -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
diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c
index 3a8cc99..e7be0af 100644
--- a/drivers/cpufreq/freq_table.c
+++ b/drivers/cpufreq/freq_table.c
@@ -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);