]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sh: kgdb: Fix up basic SMP support.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 10 Apr 2012 03:39:55 +0000 (12:39 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 10 Apr 2012 03:39:55 +0000 (12:39 +0900)
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>
arch/sh/kernel/kgdb.c

index b117781bfea2914efef3579cbe696cd29f399f00..93458880acad6ec71514b5a19ee0e1cc75393664 100644 (file)
@@ -264,6 +264,18 @@ BUILD_TRAP_HANDLER(singlestep)
        local_irq_restore(flags);
 }
 
+static void kgdb_call_nmi_hook(void *ignored)
+{
+       kgdb_nmicallback(raw_smp_processor_id(), NULL);
+}
+
+void kgdb_roundup_cpus(unsigned long flags)
+{
+       local_irq_enable();
+       smp_call_function(kgdb_call_nmi_hook, NULL, 0);
+       local_irq_disable();
+}
+
 static int __kgdb_notify(struct die_args *args, unsigned long cmd)
 {
        int ret;