Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: powernv: Stop setting common freq attributes

The cpufreq core handles this now, the driver can skip setting it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>

-6
-6
drivers/cpufreq/powernv-cpufreq.c
··· 386 386 static struct freq_attr cpufreq_freq_attr_cpuinfo_nominal_freq = 387 387 __ATTR_RO(cpuinfo_nominal_freq); 388 388 389 - #define SCALING_BOOST_FREQS_ATTR_INDEX 2 390 - 391 389 static struct freq_attr *powernv_cpu_freq_attr[] = { 392 - &cpufreq_freq_attr_scaling_available_freqs, 393 390 &cpufreq_freq_attr_cpuinfo_nominal_freq, 394 - &cpufreq_freq_attr_scaling_boost_freqs, 395 391 NULL, 396 392 }; 397 393 ··· 1125 1129 1126 1130 if (powernv_pstate_info.wof_enabled) 1127 1131 powernv_cpufreq_driver.boost_enabled = true; 1128 - else 1129 - powernv_cpu_freq_attr[SCALING_BOOST_FREQS_ATTR_INDEX] = NULL; 1130 1132 1131 1133 rc = cpufreq_register_driver(&powernv_cpufreq_driver); 1132 1134 if (rc) {