Skip to content

Commit f04b611

Browse files
rmurphy-armwilldeacon
authored andcommitted
perf/arm-cmn: Clean up unnecessary NUMA_NO_NODE check
Checking for NUMA_NO_NODE is a misleading and, on reflection, entirely unnecessary micro-optimisation. If it ever did happen that an incoming CPU has no NUMA affinity while the current CPU does, a questionably- useful PMU migration isn't the biggest thing wrong with that picture... Signed-off-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/00634da33c21269a00844140afc7cc3a2ac1eb4d.1725474584.git.robin.murphy@arm.com Signed-off-by: Will Deacon <[email protected]>
1 parent 0dc2f49 commit f04b611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/perf/arm-cmn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ static int arm_cmn_pmu_online_cpu(unsigned int cpu, struct hlist_node *cpuhp_nod
20232023

20242024
cmn = hlist_entry_safe(cpuhp_node, struct arm_cmn, cpuhp_node);
20252025
node = dev_to_node(cmn->dev);
2026-
if (node != NUMA_NO_NODE && cpu_to_node(cmn->cpu) != node && cpu_to_node(cpu) == node)
2026+
if (cpu_to_node(cmn->cpu) != node && cpu_to_node(cpu) == node)
20272027
arm_cmn_migrate(cmn, cpu);
20282028
return 0;
20292029
}

0 commit comments

Comments
 (0)