diff options
author | 2022-07-04 11:15:59 +0100 | |
---|---|---|
committer | 2022-07-04 16:22:29 +0100 | |
commit | 5a01bb8efb5177236498fc57b147cabd2b792613 (patch) | |
tree | 8e01976a48c0cf9df290e06f6a0539baec3417d8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | arch_topology: Check for non-negative value rather than -1 for IDs validity (diff) | |
download | linux-dev-5a01bb8efb5177236498fc57b147cabd2b792613.tar.xz linux-dev-5a01bb8efb5177236498fc57b147cabd2b792613.zip |
arch_topology: Avoid parsing through all the CPUs once a outlier CPU is found
There is no point in looping through all the CPU's physical package
identifier to check if it is valid or not once a CPU which is outside
the topology(i.e. outlier CPU) is found.
Let us just break out of the loop early in such case.
Link: https://lore.kernel.org/r/20220704101605.1318280-16-sudeep.holla@arm.com
Tested-by: Ionela Voinescu <ionela.voinescu@arm.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions