Skip to content

riscv: minor thread_info.cpu improvements

Radim Krčmář linux-riscv lkml stable 2 versions – Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied 4/4
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* transform [v1 2/3] into [v2 1-2/4] to simplify backports [Alex]
* tested and reviewed by Alex
v1: https://lore.kernel.org/lkml/[email protected]/

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4riscv: use lw when reading int cpu in new_vmalloc_checkarch/riscv/kernel/entry.S+1 -10 repliesApplied
2/4riscv: use lw when reading int cpu in asm_per_cpuarch/riscv/include/asm/asm.h+1 -10 repliesApplied
3/4riscv: use TASK_TI_CPU instead of TASK_TI_CPU_NUMarch/riscv/include/asm/asm.h arch/riscv/kernel/asm-offsets.c+1 -20 repliesApplied
4/4riscv: pack rv64 thread_info betterarch/riscv/include/asm/thread_info.h+1 -10 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAlexandre Ghiti
1/4R-b
2/4R-b
3/4R-b
4/4T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] riscv: minor thread_info.cpu improvements

Hello,

I noticed that we give thread_info.cpu two different names in the assembly, load it as a wider type, and store it suboptimally.

v2 is split for easy backporting.

Thanks.

v2:
* transform [v1 2/3] into [v2 1-2/4] to simplify backports [Alex]
* tested and reviewed by Alex
v1: https://lore.kernel.org/lkml/[email protected]/

Radim Krčmář (4):
riscv: use lw when reading int cpu in new_vmalloc_check
riscv: use lw when reading int cpu in asm_per_cpu
riscv: use TASK_TI_CPU instead of TASK_TI_CPU_NUM
riscv: pack rv64 thread_info better

 arch/riscv/include/asm/asm.h         | 2 +-
 arch/riscv/include/asm/thread_info.h | 2 +-
 arch/riscv/kernel/asm-offsets.c      | 1 -
 arch/riscv/kernel/entry.S            | 2 +-
 4 files changed, 3 insertions(+), 4 deletions(-)
Signature · 1 line
2.50.0