Commit b52aaee
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.com1 parent 4a412c7 commit b52aaee
1 file changed
+4
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2200 | 2200 | | |
2201 | 2201 | | |
2202 | 2202 | | |
2203 | | - | |
2204 | | - | |
2205 | | - | |
2206 | | - | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
2210 | 2203 | | |
2211 | 2204 | | |
2212 | 2205 | | |
2213 | | - | |
2214 | | - | |
2215 | | - | |
| 2206 | + | |
| 2207 | + | |
2216 | 2208 | | |
2217 | 2209 | | |
2218 | 2210 | | |
2219 | 2211 | | |
2220 | 2212 | | |
2221 | | - | |
| 2213 | + | |
2222 | 2214 | | |
2223 | 2215 | | |
2224 | | - | |
| 2216 | + | |
2225 | 2217 | | |
2226 | 2218 | | |
2227 | 2219 | | |
| |||
0 commit comments