]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: Stop checking for duplicate available/boost freq attributes
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 23 Jan 2025 04:06:44 +0000 (09:36 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 7 Feb 2025 04:15:14 +0000 (09:45 +0530)
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>
drivers/cpufreq/cpufreq.c

index 71ecf6a004e852d53e7e2a9bf100cefcf7c2a0f2..42b00ca510356b909cba252bcc8df55393c2f5b5 100644 (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;