]> git.ipfire.org Git - thirdparty/linux.git/commit
cpufreq: intel_pstate: Avoid SMP calls to get cpu-type
authorPawan Gupta <pawan.kumar.gupta@linux.intel.com>
Thu, 12 Dec 2024 06:57:30 +0000 (22:57 -0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 27 Feb 2025 12:34:52 +0000 (13:34 +0100)
commitb52aaeeadfac54c91005e044b72b62616a5864a9
treeb5a8daadd69661a88b284e72260dc6fe0c3d8b6e
parent4a412c70af674198749fd16be695d53e1c41b5f9
cpufreq: intel_pstate: Avoid SMP calls to get cpu-type

Intel pstate driver relies on SMP calls to get the cpu-type of a given CPU.
Remove the SMP calls and instead use the cached value of cpu-type which is
more efficient.

[ mingo: Forward ported it. ]

Suggested-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20241211-add-cpu-type-v5-2-2ae010f50370@linux.intel.com
drivers/cpufreq/intel_pstate.c