Commit 6e03708
committed
cpufreq: intel_pstate: Avoid SMP calls to get cpu-type
JIRA: https://issues.redhat.com/browse/RHEL-85517
commit b52aaee
Author: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Date: Wed Dec 11 22:57:30 2024 -0800
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
Signed-off-by: David Arcari <darcari@redhat.com>1 parent 0cb0808 commit 6e03708
1 file changed
+4
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2206 | 2206 | | |
2207 | 2207 | | |
2208 | 2208 | | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
2214 | | - | |
2215 | | - | |
2216 | 2209 | | |
2217 | 2210 | | |
2218 | 2211 | | |
2219 | | - | |
2220 | | - | |
2221 | | - | |
| 2212 | + | |
| 2213 | + | |
2222 | 2214 | | |
2223 | 2215 | | |
2224 | 2216 | | |
2225 | 2217 | | |
2226 | 2218 | | |
2227 | | - | |
| 2219 | + | |
2228 | 2220 | | |
2229 | 2221 | | |
2230 | | - | |
| 2222 | + | |
2231 | 2223 | | |
2232 | 2224 | | |
2233 | 2225 | | |
| |||
0 commit comments