summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/smp-ops.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-04-26 19:08:55 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-04-26 19:08:55 +0900
commit763142d1efb56effe614d71185781796c4b83c78 (patch)
treef886c239786fd4be028e3a45006c5cc5c1b3a3f2 /arch/sh/include/asm/smp-ops.h
parent8db2bc4559639680a94d4492ae4b7ce71298a74f (diff)
downloadblackbird-op-linux-763142d1efb56effe614d71185781796c4b83c78.tar.gz
blackbird-op-linux-763142d1efb56effe614d71185781796c4b83c78.zip
sh: CPU hotplug support.
This adds preliminary support for CPU hotplug for SH SMP systems. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/smp-ops.h')
-rw-r--r--arch/sh/include/asm/smp-ops.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/sh/include/asm/smp-ops.h b/arch/sh/include/asm/smp-ops.h
index 0581b2a4c8ce..c590f76856f1 100644
--- a/arch/sh/include/asm/smp-ops.h
+++ b/arch/sh/include/asm/smp-ops.h
@@ -7,20 +7,27 @@ struct plat_smp_ops {
void (*prepare_cpus)(unsigned int max_cpus);
void (*start_cpu)(unsigned int cpu, unsigned long entry_point);
void (*send_ipi)(unsigned int cpu, unsigned int message);
+ int (*cpu_disable)(unsigned int cpu);
+ void (*cpu_die)(unsigned int cpu);
+ void (*play_dead)(void);
};
+extern struct plat_smp_ops *mp_ops;
extern struct plat_smp_ops shx3_smp_ops;
#ifdef CONFIG_SMP
static inline void plat_smp_setup(void)
{
- extern struct plat_smp_ops *mp_ops; /* private */
-
BUG_ON(!mp_ops);
mp_ops->smp_setup();
}
+static inline void play_dead(void)
+{
+ mp_ops->play_dead();
+}
+
extern void register_smp_ops(struct plat_smp_ops *ops);
#else
@@ -34,6 +41,11 @@ static inline void register_smp_ops(struct plat_smp_ops *ops)
{
}
+static inline void play_dead(void)
+{
+ BUG();
+}
+
#endif /* CONFIG_SMP */
#endif /* __ASM_SH_SMP_OPS_H */
OpenPOWER on IntegriCloud