public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/3] riscv: CPU operations cleanup
@ 2023-11-21 23:47 Samuel Holland
  2023-11-21 23:47 ` [PATCH 1/3] riscv: Deduplicate code in setup_smp() Samuel Holland
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Samuel Holland @ 2023-11-21 23:47 UTC (permalink / raw)
  To: Palmer Dabbelt, linux-riscv; +Cc: linux-kernel, Samuel Holland

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(-)

-- 
2.42.0


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-01-05 21:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-21 23:47 [PATCH 0/3] riscv: CPU operations cleanup Samuel Holland
2023-11-21 23:47 ` [PATCH 1/3] riscv: Deduplicate code in setup_smp() Samuel Holland
2023-11-22 11:18   ` Conor Dooley
2023-11-21 23:47 ` [PATCH 2/3] riscv: Remove unused members from struct cpu_operations Samuel Holland
2023-11-22 11:28   ` Conor Dooley
2023-11-21 23:47 ` [PATCH 3/3] riscv: Use the same CPU operations for all CPUs Samuel Holland
2023-11-22 11:39   ` Conor Dooley
2024-01-05 21:50 ` [PATCH 0/3] riscv: CPU operations cleanup patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox