summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/cpu_ops.h
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2023-11-22 02:47:25 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2024-01-05 02:03:06 +0300
commit79093f3ec39c90edf4bd1a532d922ee6163441ec (patch)
treef315ff1e67240925d7a6abed0ce717103f9f7ba9 /arch/riscv/include/asm/cpu_ops.h
parenta4166aec11309d24e650e74cf8191a6d25a97fcf (diff)
downloadlinux-79093f3ec39c90edf4bd1a532d922ee6163441ec.tar.xz
riscv: Remove unused members from struct cpu_operations
name is not used anywhere at all. cpu_prepare and cpu_disable do nothing and always return 0 if implemented. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20231121234736.3489608-3-samuel.holland@sifive.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm/cpu_ops.h')
-rw-r--r--arch/riscv/include/asm/cpu_ops.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/riscv/include/asm/cpu_ops.h b/arch/riscv/include/asm/cpu_ops.h
index aa128466c4d4..18af75e6873c 100644
--- a/arch/riscv/include/asm/cpu_ops.h
+++ b/arch/riscv/include/asm/cpu_ops.h
@@ -13,26 +13,16 @@
/**
* struct cpu_operations - Callback operations for hotplugging CPUs.
*
- * @name: Name of the boot protocol.
- * @cpu_prepare: Early one-time preparation step for a cpu. If there
- * is a mechanism for doing so, tests whether it is
- * possible to boot the given HART.
* @cpu_start: Boots a cpu into the kernel.
- * @cpu_disable: Prepares a cpu to die. May fail for some
- * mechanism-specific reason, which will cause the hot
- * unplug to be aborted. Called from the cpu to be killed.
* @cpu_stop: Makes a cpu leave the kernel. Must not fail. Called from
* the cpu being stopped.
* @cpu_is_stopped: Ensures a cpu has left the kernel. Called from another
* cpu.
*/
struct cpu_operations {
- const char *name;
- int (*cpu_prepare)(unsigned int cpu);
int (*cpu_start)(unsigned int cpu,
struct task_struct *tidle);
#ifdef CONFIG_HOTPLUG_CPU
- int (*cpu_disable)(unsigned int cpu);
void (*cpu_stop)(void);
int (*cpu_is_stopped)(unsigned int cpu);
#endif