Skip to content

Commit 38bcdb6

Browse files
committed
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>
1 parent 486729c commit 38bcdb6

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/cpufreq/cpufreq.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,13 +1077,6 @@ static int cpufreq_add_dev_interface(struct cpufreq_policy *policy)
10771077
/* set up files for this cpu device */
10781078
drv_attr = cpufreq_driver->attr;
10791079
while (drv_attr && *drv_attr) {
1080-
/* These are already added, skip them */
1081-
if (*drv_attr == &cpufreq_freq_attr_scaling_available_freqs ||
1082-
*drv_attr == &cpufreq_freq_attr_scaling_boost_freqs) {
1083-
drv_attr++;
1084-
continue;
1085-
}
1086-
10871080
ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr));
10881081
if (ret)
10891082
return ret;

0 commit comments

Comments
 (0)