[PATCH v2 0/3] RISC-V: add percpu.h to include/asm

Yunhui Cui posted 3 patches 1 week, 4 days ago
There is a newer version of this series
arch/riscv/include/asm/asm.h         |   6 +-
arch/riscv/include/asm/bitops.h      |   1 -
arch/riscv/include/asm/percpu.h      | 242 +++++++++++++++++++++++++++
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, 263 insertions(+), 16 deletions(-)
create mode 100644 arch/riscv/include/asm/percpu.h
[PATCH v2 0/3] RISC-V: add percpu.h to include/asm
Posted by Yunhui Cui 1 week, 4 days ago
v1->v2:
1. Support percpu add/and/or operations for non-ZABHA
2. Implement optimization: store percpu offset in thread_info

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      | 242 +++++++++++++++++++++++++++
 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, 263 insertions(+), 16 deletions(-)
 create mode 100644 arch/riscv/include/asm/percpu.h

-- 
2.39.5