summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorMike Tipton <quic_mdtipton@quicinc.com>2025-05-14 20:53:12 -0700
committerViresh Kumar <viresh.kumar@linaro.org>2025-05-20 11:24:18 +0530
commit6c9bb86922728c7a4cceb99f131e00dd87514f20 (patch)
tree431c0e65115a9ef878eb7c6652544279602093f0 /scripts/gdb/linux/utils.py
parentc410aabd0321468b6569f31931aa32ddc5897ca9 (diff)
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 <quic_mdtipton@quicinc.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Cristian Marussi <cristian.marussi@arm.com> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Tested-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions