diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-04-09 23:39:55 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-04-09 23:39:55 -0400 |
commit | 14f087d839d9bd3f90ad69d4b3fde7d236c156b1 (patch) | |
tree | 1835e9eade6ba4169dedc0887efc8bbe4701997a /arch/sh/kernel/kgdb.c | |
parent | 0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff) |
sh: kgdb: Fix up basic SMP support.
kgdb needs a kgdb_roundup_cpus() definition in the architecture backend,
so just copy over the MIPS version, which already does what we want.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/kgdb.c')
-rw-r--r-- | arch/sh/kernel/kgdb.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c index b117781bfea2..93458880acad 100644 --- a/arch/sh/kernel/kgdb.c +++ b/arch/sh/kernel/kgdb.c | |||
@@ -264,6 +264,18 @@ BUILD_TRAP_HANDLER(singlestep) | |||
264 | local_irq_restore(flags); | 264 | local_irq_restore(flags); |
265 | } | 265 | } |
266 | 266 | ||
267 | static void kgdb_call_nmi_hook(void *ignored) | ||
268 | { | ||
269 | kgdb_nmicallback(raw_smp_processor_id(), NULL); | ||
270 | } | ||
271 | |||
272 | void kgdb_roundup_cpus(unsigned long flags) | ||
273 | { | ||
274 | local_irq_enable(); | ||
275 | smp_call_function(kgdb_call_nmi_hook, NULL, 0); | ||
276 | local_irq_disable(); | ||
277 | } | ||
278 | |||
267 | static int __kgdb_notify(struct die_args *args, unsigned long cmd) | 279 | static int __kgdb_notify(struct die_args *args, unsigned long cmd) |
268 | { | 280 | { |
269 | int ret; | 281 | int ret; |