cpufreq: Stop checking for duplicate available/boost freq attributes

None of the drivers set these attributes directly now, remove the
unnecessary check.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
This commit is contained in:
Viresh Kumar
2025-02-07 09:45:14 +05:30
parent 486729c601
commit 38bcdb635a
-7
View File
@@ -1077,13 +1077,6 @@ static int cpufreq_add_dev_interface(struct cpufreq_policy *policy)
/* set up files for this cpu device */
drv_attr = cpufreq_driver->attr;
while (drv_attr && *drv_attr) {
/* These are already added, skip them */
if (*drv_attr == &cpufreq_freq_attr_scaling_available_freqs ||
*drv_attr == &cpufreq_freq_attr_scaling_boost_freqs) {
drv_attr++;
continue;
}
ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr));
if (ret)
return ret;