diff options
author | 2024-12-10 22:15:17 +0800 | |
---|---|---|
committer | 2024-12-10 15:57:24 +0000 | |
commit | f2368a209a713267b68f7a4906a5012a29925410 (patch) | |
tree | d7ed6433fbd5a5c1e07ca4510d5dcb8f54f142c9 | |
parent | drivers/perf: hisi: Define a symbol namespace for HiSilicon Uncore PMUs (diff) | |
download | wireguard-linux-f2368a209a713267b68f7a4906a5012a29925410.tar.xz wireguard-linux-f2368a209a713267b68f7a4906a5012a29925410.zip |
drivers/perf: hisi: Don't update the associated_cpus on CPU offline
Event will be scheduled on CPU of hisi_pmu::on_cpu which is selected
from the intersection of hisi_pmu::associated_cpus and online CPUs.
So the associated_cpus don't need to be maintained with online CPUs.
This will save one update operation if one associated CPU is offlined.
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20241210141525.37788-3-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/perf/hisilicon/hisi_uncore_pmu.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/perf/hisilicon/hisi_uncore_pmu.c b/drivers/perf/hisilicon/hisi_uncore_pmu.c index 749d33625980..8c404f8b3f39 100644 --- a/drivers/perf/hisilicon/hisi_uncore_pmu.c +++ b/drivers/perf/hisilicon/hisi_uncore_pmu.c @@ -492,9 +492,6 @@ int hisi_uncore_pmu_offline_cpu(unsigned int cpu, struct hlist_node *node) node); unsigned int target; - if (!cpumask_test_and_clear_cpu(cpu, &hisi_pmu->associated_cpus)) - return 0; - /* Nothing to do if this CPU doesn't own the PMU */ if (hisi_pmu->on_cpu != cpu) return 0; |