Skip to content

Commit eb1e503

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
riscv: select ARCH_USE_CMPXCHG_LOCKREF
Select ARCH_USE_CMPXCHG_LOCKREF to enable the cmpxchg-based lockless lockref implementation for riscv. Using Linus' test case[1] on TH1520 platform, I see a 11.2% improvement. On JH7110 platform, I see 12.0% improvement. Link: http://marc.info/?l=linux-fsdevel&m=137782380714721&w=4 [1] Signed-off-by: Jisheng Zhang <[email protected]> Reviewed-by: Andrea Parri <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 6613476 commit eb1e503

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ config RISCV
5050
select ARCH_SUPPORTS_PAGE_TABLE_CHECK if MMU
5151
select ARCH_SUPPORTS_PER_VMA_LOCK if MMU
5252
select ARCH_SUPPORTS_SHADOW_CALL_STACK if HAVE_SHADOW_CALL_STACK
53+
select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
5354
select ARCH_USE_MEMTEST
5455
select ARCH_USE_QUEUED_RWLOCKS
5556
select ARCH_USES_CFI_TRAPS if CFI_CLANG

0 commit comments

Comments
 (0)