
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8T8XV -------------------------------- Disable CNA by default, this default behavior can be overridden with the kernel boot command-line option "numa_spinlock=on/off/auto". Signed-off-by: Wei Li <liwei391@huawei.com> --- kernel/locking/qspinlock_cna.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/locking/qspinlock_cna.h b/kernel/locking/qspinlock_cna.h index 17d56c739e57..3983505c1118 100644 --- a/kernel/locking/qspinlock_cna.h +++ b/kernel/locking/qspinlock_cna.h @@ -378,9 +378,9 @@ static inline void cna_lock_handoff(struct mcs_spinlock *node, /* * Constant (boot-param configurable) flag selecting the NUMA-aware variant - * of spinlock. Possible values: -1 (off) / 0 (auto, default) / 1 (on). + * of spinlock. Possible values: -1 (off, default) / 0 (auto) / 1 (on). */ -static int numa_spinlock_flag; +static int numa_spinlock_flag = -1; static int __init numa_spinlock_setup(char *str) { -- 2.25.1