Skip to content

Commit 50b8cd5

Browse files
committed
cpufreq: scmi: Stop setting cpufreq_driver->attr field
The cpufreq core now handles this for basic attributes, including boost frequencies, the driver can skip setting them. Signed-off-by: Viresh Kumar <[email protected]> Acked-by: Sudeep Holla <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]>
1 parent e2079dc commit 50b8cd5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/cpufreq/scmi-cpufreq.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,6 @@ scmi_get_rate_limit(u32 domain, bool has_fast_switch)
171171
return rate_limit;
172172
}
173173

174-
static struct freq_attr *scmi_cpufreq_hw_attr[] = {
175-
&cpufreq_freq_attr_scaling_available_freqs,
176-
NULL,
177-
NULL,
178-
};
179-
180174
static int scmi_limit_notify_cb(struct notifier_block *nb, unsigned long event, void *data)
181175
{
182176
struct scmi_data *priv = container_of(nb, struct scmi_data, limit_notify_nb);
@@ -309,7 +303,6 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy)
309303
dev_warn(cpu_dev, "failed to enable boost: %d\n", ret);
310304
goto out_free_table;
311305
} else {
312-
scmi_cpufreq_hw_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs;
313306
scmi_cpufreq_driver.boost_enabled = true;
314307
}
315308
}
@@ -395,7 +388,6 @@ static struct cpufreq_driver scmi_cpufreq_driver = {
395388
CPUFREQ_NEED_INITIAL_FREQ_CHECK |
396389
CPUFREQ_IS_COOLING_DEV,
397390
.verify = cpufreq_generic_frequency_table_verify,
398-
.attr = scmi_cpufreq_hw_attr,
399391
.target_index = scmi_cpufreq_set_target,
400392
.fast_switch = scmi_cpufreq_fast_switch,
401393
.get = scmi_cpufreq_get_rate,

0 commit comments

Comments
 (0)