]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: Select HAVE_CMPXCHG_LOCAL in Kconfig
authorHuacai Chen <chenhuacai@loongson.cn>
Tue, 10 Feb 2026 11:31:06 +0000 (19:31 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 10 Feb 2026 11:31:06 +0000 (19:31 +0800)
commit07d5798aadfa922af1f81bf7fe4a1746a7e6d184
tree8469d12c6f7a5bd5f6e4905e212ab6df10a33052
parent05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
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>
arch/loongarch/Kconfig