]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: intel_pstate: Rearrange max frequency updates handling code
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Mar 2025 20:43:46 +0000 (21:43 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Apr 2025 19:22:08 +0000 (21:22 +0200)
commit973207ae3d7c3c92df4a382df5d7bd695deaa904
tree2e749d7b0784ee7593d21dc73fca710ff8cb6467
parent6fec833b9d70c54ceacbf7d07665215fbd0cddef
cpufreq: intel_pstate: Rearrange max frequency updates handling code

Rename __intel_pstate_update_max_freq() to intel_pstate_update_max_freq()
and move the cpufreq policy reference counting and locking into it (and
implement the locking with the recently introduced cpufreq policy "write"
locking guard).

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://patch.msgid.link/2315023.iZASKD2KPV@rjwysocki.net
drivers/cpufreq/intel_pstate.c