]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: powernv: Set .set_boost directly
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 23 Jan 2025 07:44:20 +0000 (13:14 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 7 Feb 2025 04:15:15 +0000 (09:45 +0530)
commit3fd920377884a0ed5b15da0c1f34a90b280b3b3d
tree4d1d72ccf7e0ed68af2745227f7b67e451bb50fc
parent13e92357b6e875c4ad1a4f5edeb460717380e76a
cpufreq: powernv: Set .set_boost directly

The boost feature can be controlled at two levels currently, driver
level (applies to all policies) and per-policy.

Currently the driver enables driver level boost support from the
per-policy ->init() callback, which isn't really efficient as that gets
called for each policy and then there is online/offline path too where
this gets done unnecessarily.

Instead set the .set_boost field directly and always enable the boost
support. If a policy doesn't support boost feature, the core will not
enable it for that policy.

Keep the initial state of driver level boost to disabled and let the
user enable it if required as ideally the boost frequencies must be used
only when really required.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/powernv-cpufreq.c