x86/cpu: Take NUMA node into account when allocating per-CPU cpumasks
authorLi RongQing <lirongqing@baidu.com>
Wed, 10 Apr 2024 03:01:14 +0000 (11:01 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 10 Apr 2024 04:55:31 +0000 (06:55 +0200)
commite0a9ac192fd62322b932c6018db60217b3ad866d
tree6fba8d76466bdc8f1458460be3c6feb1df992524
parent7911f145de5fecbee1d67f27f73bec12f0fbc472
x86/cpu: Take NUMA node into account when allocating per-CPU cpumasks

per-CPU cpumasks are dominantly accessed from their own local CPUs,
so allocate them node-local to improve performance.

[ mingo: Rewrote the changelog. ]

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240410030114.6201-1-lirongqing@baidu.com
arch/x86/kernel/apic/x2apic_cluster.c
arch/x86/kernel/smpboot.c