MIPS: Add arch generic CPU hotplug
Each platform has to add support for CPU hotplugging itself by providing
suitable definitions for the cpu_disable and cpu_die of the smp_ops
methods and setting SYS_SUPPORTS_HOTPLUG_CPU. A platform should only set
SYS_SUPPORTS_HOTPLUG_CPU once all it's smp_ops definitions have the
necessary changes. This patch contains the changes to the dummy smp_ops
definition for uni-processor systems.
Parts of the code contributed by Cavium Inc.
Signed-off-by:
Ralf Baechle <ralf@linux-mips.org>
Showing
- arch/mips/Kconfig 10 additions, 1 deletionarch/mips/Kconfig
- arch/mips/include/asm/smp-ops.h 4 additions, 0 deletionsarch/mips/include/asm/smp-ops.h
- arch/mips/include/asm/smp.h 19 additions, 0 deletionsarch/mips/include/asm/smp.h
- arch/mips/kernel/process.c 12 additions, 1 deletionarch/mips/kernel/process.c
- arch/mips/kernel/smp-up.c 16 additions, 0 deletionsarch/mips/kernel/smp-up.c
- arch/mips/kernel/smp.c 13 additions, 4 deletionsarch/mips/kernel/smp.c
- arch/mips/kernel/topology.c 4 additions, 1 deletionarch/mips/kernel/topology.c
Please register or sign in to comment