[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231121234736.3489608-1-samuel.holland@sifive.com>
Date: Tue, 21 Nov 2023 15:47:23 -0800
From: Samuel Holland <samuel.holland@...ive.com>
To: Palmer Dabbelt <palmer@...belt.com>,
linux-riscv@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org,
Samuel Holland <samuel.holland@...ive.com>
Subject: [PATCH 0/3] riscv: CPU operations cleanup
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
Powered by blists - more mailing lists