Skip to content

Commit 07d5798

Browse files
committed
LoongArch: Select HAVE_CMPXCHG_LOCAL in Kconfig
LoongArch has already implemented cmpxchg_local(), this_cpu_cmpxchg() and similar functions, so select HAVE_CMPXCHG_LOCAL in Kconfig to avoid incurring the overhead of local_irq_save()/local_irq_restore() for page state helpers in mm/vmstat.c. Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 05f7e89 commit 07d5798

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/loongarch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ config LOONGARCH
130130
select HAVE_ARCH_TRANSPARENT_HUGEPAGE
131131
select HAVE_ARCH_USERFAULTFD_MINOR if USERFAULTFD
132132
select HAVE_ASM_MODVERSIONS
133+
select HAVE_CMPXCHG_LOCAL
133134
select HAVE_CONTEXT_TRACKING_USER
134135
select HAVE_C_RECORDMCOUNT
135136
select HAVE_DEBUG_KMEMLEAK

0 commit comments

Comments
 (0)