Title: [5289] trunk/arch/blackfin/kernel/kgdb.c: task[#3428] Clean up SMP code for kgdb.
Revision
5289
Author
sonicz
Date
2008-09-12 05:58:36 -0500 (Fri, 12 Sep 2008)

Log Message

task[#3428] Clean up SMP code for kgdb.

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/kgdb.c (5288 => 5289)


--- trunk/arch/blackfin/kernel/kgdb.c	2008-09-12 08:27:13 UTC (rev 5288)
+++ trunk/arch/blackfin/kernel/kgdb.c	2008-09-12 10:58:36 UTC (rev 5289)
@@ -369,6 +369,11 @@
 {
 	smp_call_function(kgdb_passive_cpu_callback, NULL, 0, 0);
 }
+
+void kgdb_roundup_cpu(int cpu, unsigned long flags)
+{
+	smp_call_function_single(cpu, kgdb_passive_cpu_callback, NULL, 0, 0);
+}
 #endif
 
 void kgdb_post_primary_code(struct pt_regs *regs, int eVector, int err_code)
@@ -389,18 +394,10 @@
 	int newPC;
 	int wp_status;
 	int i;
-#ifdef CONFIG_SMP
-	int cpu = raw_smp_processor_id();
-	struct task_struct *thread;
-#endif
 
 	switch (remcom_in_buffer[0]) {
 #ifdef CONFIG_SMP
 	case 'H':
-		thread = getthread(regs, -cpu - 2);
-		if (kgdb_usethread && kgdb_usethread != thread)
-			smp_call_function_single(cpu,
-				kgdb_passive_cpu_callback, NULL, 0, 0);
 		return 0;
 #endif
 	case 'c':
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to