Skip to content

Commit 6451f5e

Browse files
author
Yunming Yang
committed
cpufreq: powernv: Stop setting common freq attributes
JIRA: https://issues.redhat.com/browse/RHEL-121364 Upstream Status: upstream commit 792e6a8 Author: Viresh Kumar <viresh.kumar@linaro.org> Date: Wed Jan 22 16:23:51 2025 +0530 cpufreq: powernv: Stop setting common freq attributes The cpufreq core handles this now, the driver can skip setting it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Rafael J. Wysocki <rafael@kernel.org> Signed-off-by: Yunming Yang <yunyang@redhat.com>
1 parent 7576bc3 commit 6451f5e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/cpufreq/powernv-cpufreq.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,8 @@ static ssize_t cpuinfo_nominal_freq_show(struct cpufreq_policy *policy,
386386
static struct freq_attr cpufreq_freq_attr_cpuinfo_nominal_freq =
387387
__ATTR_RO(cpuinfo_nominal_freq);
388388

389-
#define SCALING_BOOST_FREQS_ATTR_INDEX 2
390-
391389
static struct freq_attr *powernv_cpu_freq_attr[] = {
392-
&cpufreq_freq_attr_scaling_available_freqs,
393390
&cpufreq_freq_attr_cpuinfo_nominal_freq,
394-
&cpufreq_freq_attr_scaling_boost_freqs,
395391
NULL,
396392
};
397393

@@ -1129,8 +1125,6 @@ static int __init powernv_cpufreq_init(void)
11291125

11301126
if (powernv_pstate_info.wof_enabled)
11311127
powernv_cpufreq_driver.set_boost = cpufreq_boost_set_sw;
1132-
else
1133-
powernv_cpu_freq_attr[SCALING_BOOST_FREQS_ATTR_INDEX] = NULL;
11341128

11351129
rc = cpufreq_register_driver(&powernv_cpufreq_driver);
11361130
if (rc) {

0 commit comments

Comments
 (0)