drivers/perf: hisi: Schedule perf session according to locality
authorYicong Yang <yangyicong@hisilicon.com>
Tue, 15 Aug 2023 13:10:10 +0000 (21:10 +0800)
committerWill Deacon <will@kernel.org>
Wed, 16 Aug 2023 13:27:43 +0000 (14:27 +0100)
commit83a6d80c2bfd1d348e5e7079af21a924fdc5c972
tree254484f72ee628f591e20aad51a11566e1f9d690
parent4c1d2f56d685406fc6b452ca5f797bda62a06609
drivers/perf: hisi: Schedule perf session according to locality

The PCIe PMUs locate on different NUMA node but currently we don't
consider it and likely stack all the sessions on the same CPU:

[root@localhost tmp]# cat /sys/devices/hisi_pcie*/cpumask
0
0
0
0
0
0

This can be optimize a bit to use a local CPU for the PMU.

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20230815131010.2147-1-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_pcie_pmu.c