Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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
+1
arch/loongarch/Kconfig
··· 130 130 select HAVE_ARCH_TRANSPARENT_HUGEPAGE 131 131 select HAVE_ARCH_USERFAULTFD_MINOR if USERFAULTFD 132 132 select HAVE_ASM_MODVERSIONS 133 + select HAVE_CMPXCHG_LOCAL 133 134 select HAVE_CONTEXT_TRACKING_USER 134 135 select HAVE_C_RECORDMCOUNT 135 136 select HAVE_DEBUG_KMEMLEAK