提交 e2ef2690 编写于 作者: H Hanjun Guo 提交者: Xie XiuQi

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: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 aad5ef75
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册