summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorYicong Yang <yangyicong@hisilicon.com>2024-12-10 17:15:18 +0300
committerWill Deacon <will@kernel.org>2024-12-10 18:57:24 +0300
commit83037a47d3aa5f3e35b0c02433a87806e9c34438 (patch)
treedfbf85207a7722ec60d7d24bba10295e7d52b2d7 /tools/perf/scripts/python/gecko.py
parentf2368a209a713267b68f7a4906a5012a29925410 (diff)
downloadlinux-83037a47d3aa5f3e35b0c02433a87806e9c34438.tar.xz
drivers/perf: hisi: Migrate to one online CPU if no associated one online
If the selected CPU hisi_pmu::on_cpu goes offline, driver will select a new online CPU from hisi_pmu::associated_cpus, or if no online CPU found the PMU context won't be migrated. However for uncore PMUs the associated CPUs are just a peference and it also works to schedule the events on any online CPUs. So add a fallback to choose an online CPU if no associated CPUs found. Signed-off-by: Yicong Yang <yangyicong@hisilicon.com> Link: https://lore.kernel.org/r/20241210141525.37788-4-yangyicong@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions