cpufreq: intel_pstate: Update the maximum CPU frequency consistently
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 28 Mar 2024 18:52:45 +0000 (19:52 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Apr 2024 10:57:22 +0000 (12:57 +0200)
commite8217b4bece379e66d43ab5070431712f07bf625
treed58170f7b0f30037e30cc33f141fbe6ee03f7989
parentf32587dcbe5f40e160d8de262add6abab79356a7
cpufreq: intel_pstate: Update the maximum CPU frequency consistently

There are 3 places at which the maximum CPU frequency may change,
store_no_turbo(), intel_pstate_update_limits() (when called by the
cpufreq core) and intel_pstate_notify_work() (when handling a HWP
change notification).  Currently, cpuinfo.max_freq is only updated by
store_no_turbo() and intel_pstate_notify_work(), although it principle
it may be necessary to update it in intel_pstate_update_limits() either.

Make all of them mutually consistent.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
drivers/cpufreq/intel_pstate.c