diff options
author | Gregory CLEMENT <gregory.clement@bootlin.com> | 2025-07-11 11:54:20 +0200 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2025-07-16 18:34:49 +0200 |
commit | c71085f2c0f18f025784ce975358adcccaa8c041 (patch) | |
tree | 537c0a885f51fb72ef3ca7ef53e30bb35c77ac7c /tools/perf/scripts/python/sched-migration.py | |
parent | 07f8888ee7df5189e64839abb26842dc6c2da371 (diff) |
MIPS: CPS: Improve mips_cps_first_online_in_cluster()
The initial implementation of this function goes through all the CPUs
in a cluster to determine if the current CPU is the only one
running. This process occurs every time the function is called.
However, during boot, we already perform this task, so let's take
advantage of this opportunity to create and fill a CPU bitmask that
can be easily and efficiently used later.
This patch modifies the function to allow providing the first
available online CPU when one already exists, which is necessary for
delay CPU calibration optimization.
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions