]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: apple: Stop setting cpufreq_driver->attr field
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 22 Jan 2025 10:53:51 +0000 (16:23 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 7 Feb 2025 04:15:11 +0000 (09:45 +0530)
The cpufreq core now handles this for basic attributes, including boost
frequencies, the driver can skip setting them.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
drivers/cpufreq/apple-soc-cpufreq.c

index 269b18c62d040297df9832c7b3ccc6e1c096a01e..6ff604a0fe79b85a5d4029896ab1513d78f3ea4b 100644 (file)
@@ -229,12 +229,6 @@ static int apple_soc_cpufreq_find_cluster(struct cpufreq_policy *policy,
        return 0;
 }
 
-static struct freq_attr *apple_soc_cpufreq_hw_attr[] = {
-       &cpufreq_freq_attr_scaling_available_freqs,
-       NULL, /* Filled in below if boost is enabled */
-       NULL,
-};
-
 static int apple_soc_cpufreq_init(struct cpufreq_policy *policy)
 {
        int ret, i;
@@ -321,7 +315,6 @@ static int apple_soc_cpufreq_init(struct cpufreq_policy *policy)
                if (ret) {
                        dev_warn(cpu_dev, "failed to enable boost: %d\n", ret);
                } else {
-                       apple_soc_cpufreq_hw_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs;
                        apple_soc_cpufreq_driver.boost_enabled = true;
                }
        }
@@ -360,7 +353,6 @@ static struct cpufreq_driver apple_soc_cpufreq_driver = {
        .target_index   = apple_soc_cpufreq_set_target,
        .fast_switch    = apple_soc_cpufreq_fast_switch,
        .register_em    = cpufreq_register_em_with_opp,
-       .attr           = apple_soc_cpufreq_hw_attr,
        .suspend        = cpufreq_generic_suspend,
 };