aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/clk.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2025-03-28 20:48:54 +0000
committerRafael J. Wysocki <[email protected]>2025-04-09 19:22:18 +0000
commiteaff6b62d3439ca6ee00dba4f77673a8c37dac20 (patch)
tree7b708d66abf301f1befbf3df36a50a48673318a2 /rust/helpers/clk.c
parentcpufreq: Introduce cpufreq_policy_refresh() (diff)
downloadkernel-eaff6b62d3439ca6ee00dba4f77673a8c37dac20.tar.gz
kernel-eaff6b62d3439ca6ee00dba4f77673a8c37dac20.zip
cpufreq: Pass policy pointer to ->update_limits()
Since cpufreq_update_limits() obtains a cpufreq policy pointer for the given CPU and reference counts the corresponding policy object, it may as well pass the policy pointer to the cpufreq driver's ->update_limits() callback which allows that callback to avoid invoking cpufreq_cpu_get() for the same CPU. Accordingly, redefine ->update_limits() to take a policy pointer instead of a CPU number and update both drivers implementing it, intel_pstate and amd-pstate, as needed. Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Viresh Kumar <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Acked-by: Sudeep Holla <[email protected]> Tested-by: Sudeep Holla <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'rust/helpers/clk.c')
0 files changed, 0 insertions, 0 deletions