aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/bug.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2025-04-14 15:33:25 +0000
committerRafael J. Wysocki <[email protected]>2025-04-14 15:33:25 +0000
commit18605e9525ef4617582f73a2712fe9bc7c12149c (patch)
tree7ca6e8a2f61c3c00d60803416b158a09d6943ecc /rust/helpers/bug.c
parentLinux 6.15-rc2 (diff)
downloadkernel-18605e9525ef4617582f73a2712fe9bc7c12149c.tar.gz
kernel-18605e9525ef4617582f73a2712fe9bc7c12149c.zip
cpufreq: intel_pstate: Fix hwp_get_cpu_scaling()
Commit b52aaeeadfac ("cpufreq: intel_pstate: Avoid SMP calls to get cpu-type") introduced two issues into hwp_get_cpu_scaling(). First, it made that function use the CPU type of the CPU running the code even though the target CPU is passed as the argument to it and second, it used smp_processor_id() for that even though hwp_get_cpu_scaling() runs in preemptible context. Fix both of these problems by simply passing "cpu" to cpu_data(). Fixes: b52aaeeadfac ("cpufreq: intel_pstate: Avoid SMP calls to get cpu-type") Link: https://lore.kernel.org/linux-pm/[email protected]/ Reported-by: Xi Ruoyao <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions