aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorMike Tipton <[email protected]>2025-05-15 03:53:12 +0000
committerViresh Kumar <[email protected]>2025-05-20 05:54:18 +0000
commit6c9bb86922728c7a4cceb99f131e00dd87514f20 (patch)
tree431c0e65115a9ef878eb7c6652544279602093f0 /rust/helpers/helpers.c
parentMerge branch 'rust/cpufreq-dt' into cpufreq/arm/linux-next (diff)
downloadkernel-6c9bb86922728c7a4cceb99f131e00dd87514f20.tar.gz
kernel-6c9bb86922728c7a4cceb99f131e00dd87514f20.zip
cpufreq: scmi: Skip SCMI devices that aren't used by the CPUs
Currently, all SCMI devices with performance domains attempt to register a cpufreq driver, even if their performance domains aren't used to control the CPUs. The cpufreq framework only supports registering a single driver, so only the first device will succeed. And if that device isn't used for the CPUs, then cpufreq will scale the wrong domains. To avoid this, return early from scmi_cpufreq_probe() if the probing SCMI device isn't referenced by the CPU device phandles. This keeps the existing assumption that all CPUs are controlled by a single SCMI device. Signed-off-by: Mike Tipton <[email protected]> Reviewed-by: Peng Fan <[email protected]> Reviewed-by: Cristian Marussi <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Tested-by: Cristian Marussi <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions