From e2ef26904d3035bc4238d87fe7a5bed3d667c07e Mon Sep 17 00:00:00 2001 From: Hanjun Guo Date: Sat, 31 Aug 2019 11:34:14 +0800 Subject: [PATCH] qspinlock: numaware: Add ARM64 support hulk inclusion category: feature bugzilla: 13227 CVE: NA ------------------------------------------------- Enabling CNA is controlled via a new configuration option (NUMA_AWARE_SPINLOCKS). Add it for arm64 support. Signed-off-by: Hanjun Guo Signed-off-by: Wei Li Signed-off-by: Yang Yingliang --- arch/arm64/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 9fb9f2982fa6..4119e4e1ee02 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -795,6 +795,20 @@ config NODES_SHIFT Specify the maximum number of NUMA Nodes available on the target system. Increases memory reserved to accommodate various tables. +config NUMA_AWARE_SPINLOCKS + bool "Numa-aware spinlocks" + depends on NUMA && QUEUED_SPINLOCKS + default n + help + Introduce NUMA (Non Uniform Memory Access) awareness into + the slow path of spinlocks. + + The kernel will try to keep the lock on the same node, + thus reducing the number of remote cache misses, while + trading some of the short term fairness for better performance. + + Say N if you want absolute first come first serve fairness. + config USE_PERCPU_NUMA_NODE_ID def_bool y depends on NUMA -- GitLab