mbox series

[0/3] riscv: CPU operations cleanup

Message ID 20231121234736.3489608-1-samuel.holland@sifive.com (mailing list archive)
Headers show
Series riscv: CPU operations cleanup | expand

Message

Samuel Holland Nov. 21, 2023, 11:47 p.m. UTC
This series cleans up some duplicated and dead code around the RISC-V
CPU operations, that was copied from arm64 but is not needed here. The
result is a bit of memory savings and removal of a few SBI calls during
boot, with no functional change.


Samuel Holland (3):
  riscv: Deduplicate code in setup_smp()
  riscv: Remove unused members from struct cpu_operations
  riscv: Use the same CPU operations for all CPUs

 arch/riscv/include/asm/cpu_ops.h     | 14 ++--------
 arch/riscv/kernel/cpu-hotplug.c      | 19 +++++---------
 arch/riscv/kernel/cpu_ops.c          | 14 ++++------
 arch/riscv/kernel/cpu_ops_sbi.c      | 19 --------------
 arch/riscv/kernel/cpu_ops_spinwait.c | 11 --------
 arch/riscv/kernel/head.S             |  1 -
 arch/riscv/kernel/setup.c            |  1 -
 arch/riscv/kernel/smp.c              |  2 +-
 arch/riscv/kernel/smpboot.c          | 38 ++++++++--------------------
 9 files changed, 24 insertions(+), 95 deletions(-)

Comments

patchwork-bot+linux-riscv@kernel.org Jan. 5, 2024, 9:50 p.m. UTC | #1
Hello:

This series was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:

On Tue, 21 Nov 2023 15:47:23 -0800 you wrote:
> This series cleans up some duplicated and dead code around the RISC-V
> CPU operations, that was copied from arm64 but is not needed here. The
> result is a bit of memory savings and removal of a few SBI calls during
> boot, with no functional change.
> 
> 
> Samuel Holland (3):
>   riscv: Deduplicate code in setup_smp()
>   riscv: Remove unused members from struct cpu_operations
>   riscv: Use the same CPU operations for all CPUs
> 
> [...]

Here is the summary with links:
  - [1/3] riscv: Deduplicate code in setup_smp()
    https://git.kernel.org/riscv/c/a4166aec1130
  - [2/3] riscv: Remove unused members from struct cpu_operations
    https://git.kernel.org/riscv/c/79093f3ec39c
  - [3/3] riscv: Use the same CPU operations for all CPUs
    https://git.kernel.org/riscv/c/62ff262227a4

You are awesome, thank you!