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 <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]>
1 parent 486729c commit 38bcdb6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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)