The cpufreq core handles this now, the driver can skip setting it.

Signed-off-by: Viresh Kumar <viresh.ku...@linaro.org>
Acked-by: Rafael J. Wysocki <raf...@kernel.org>
---
V1.1:
- Drop runtime updates to freq attr.

 drivers/cpufreq/powernv-cpufreq.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/cpufreq/powernv-cpufreq.c 
b/drivers/cpufreq/powernv-cpufreq.c
index ae79d909943b..0631284c4cfb 100644
--- a/drivers/cpufreq/powernv-cpufreq.c
+++ b/drivers/cpufreq/powernv-cpufreq.c
@@ -386,12 +386,8 @@ static ssize_t cpuinfo_nominal_freq_show(struct 
cpufreq_policy *policy,
 static struct freq_attr cpufreq_freq_attr_cpuinfo_nominal_freq =
        __ATTR_RO(cpuinfo_nominal_freq);
 
-#define SCALING_BOOST_FREQS_ATTR_INDEX         2
-
 static struct freq_attr *powernv_cpu_freq_attr[] = {
-       &cpufreq_freq_attr_scaling_available_freqs,
        &cpufreq_freq_attr_cpuinfo_nominal_freq,
-       &cpufreq_freq_attr_scaling_boost_freqs,
        NULL,
 };
 
@@ -1129,8 +1125,6 @@ static int __init powernv_cpufreq_init(void)
 
        if (powernv_pstate_info.wof_enabled)
                powernv_cpufreq_driver.boost_enabled = true;
-       else
-               powernv_cpu_freq_attr[SCALING_BOOST_FREQS_ATTR_INDEX] = NULL;
 
        rc = cpufreq_register_driver(&powernv_cpufreq_driver);
        if (rc) {
-- 
2.31.1.272.g89b43f80a514


Reply via email to