[PATCH v3 0/3] RISC-V: add percpu.h to include/asm
Yunhui Cui
cuiyunhui at bytedance.com
Mon Dec 15 17:47:18 PST 2025
v1->v2:
1. Support percpu add/and/or operations for non-ZABHA
2. Implement optimization: store percpu offset in thread_info
v2->v3:
1. Fix this_cpu_cmpxchg128() compilation issue when
system_has_cmpxchg128() is unsupported
2. Fix sparse warning issues
Yunhui Cui (3):
riscv: remove irqflags.h inclusion in asm/bitops.h
riscv: introduce percpu.h into include/asm
riscv: store percpu offset into thread_info
arch/riscv/include/asm/asm.h | 6 +-
arch/riscv/include/asm/bitops.h | 1 -
arch/riscv/include/asm/percpu.h | 248 +++++++++++++++++++++++++++
arch/riscv/include/asm/switch_to.h | 8 +
arch/riscv/include/asm/thread_info.h | 5 +-
arch/riscv/kernel/asm-offsets.c | 1 +
arch/riscv/kernel/smpboot.c | 7 +
arch/riscv/net/bpf_jit_comp64.c | 9 +-
8 files changed, 269 insertions(+), 16 deletions(-)
create mode 100644 arch/riscv/include/asm/percpu.h
--
2.39.5
More information about the linux-riscv
mailing list