From: Viresh Kumar Date: Wed, 22 Jan 2025 10:53:51 +0000 (+0530) Subject: cpufreq: powernv: Stop setting common freq attributes X-Git-Tag: v6.15-rc1~191^2~4^2^2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=792e6a8ec211690655dedd59ccbf3b24e6505e41;p=thirdparty%2Fkernel%2Flinux.git cpufreq: powernv: Stop setting common freq attributes The cpufreq core handles this now, the driver can skip setting it. Signed-off-by: Viresh Kumar Acked-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c index ae79d909943b5..0631284c4cfbd 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) {