Skip to content

RFC riscv: Add basic percpu operations

[email protected] linux-arch linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4vmstat: percpu: Rename HAVE_CMPXCHG_LOCAL to HAVE_CMPXCHG_PERCPU_BYTEDocumentation/features/locking/cmpxchg-local/arch-support.txt arch/Kconfig arch/arm64/Kconfig +3 more+9 -92 replies
2/4arm64: percpu: Use generic PERCPU_RW_OPSarch/arm64/include/asm/percpu.h+0 -330 replies
3/4riscv: percpu: Implement this_cpu operationsarch/riscv/include/asm/percpu.h+104 -00 replies
4/4riscv: cmpxchg: Remove unused cmpxchg(64)_localarch/riscv/include/asm/cmpxchg.h+0 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] riscv: Add basic percpu operations

From: Guo Ren <[email protected]>

The series try to add basic percpu operations for riscv. HAVE_CMPXCHG_LOCAL would let people confuse with cmpxchg(64)_local, so make the name more accurate (HAVE_CMPXCHG_PERCPU_BYTE). Last, remove RISC-V's cmpxchg(64)_local definition because it's no use.

Guo Ren (4):
vmstat: percpu: Rename HAVE_CMPXCHG_LOCAL to HAVE_CMPXCHG_PERCPU_BYTE
arm64: percpu: Use generic PERCPU_RW_OPS
riscv: percpu: Implement this_cpu operations
riscv: cmpxchg: Remove unused cmpxchg(64)_local

 .../locking/cmpxchg-local/arch-support.txt    |   6 +-
 arch/Kconfig                                  |   2 +-
 arch/arm64/Kconfig                            |   2 +-
 arch/arm64/include/asm/percpu.h               |  33 ------
 arch/riscv/include/asm/cmpxchg.h              |   9 --
 arch/riscv/include/asm/percpu.h               | 104 ++++++++++++++++++
 arch/s390/Kconfig                             |   2 +-
 arch/x86/Kconfig                              |   2 +-
 mm/vmstat.c                                   |   4 +-
 9 files changed, 113 insertions(+), 51 deletions(-)
 create mode 100644 arch/riscv/include/asm/percpu.h
Signature · 1 line
2.36.1