Title: [9000] trunk/kernel/kgdb.c: Fix bug[#6044] clean up.
Revision
9000
Author
sonicz
Date
2010-07-21 07:02:16 -0400 (Wed, 21 Jul 2010)

Log Message

Fix bug[#6044] clean up.

Modified Paths

Diff

Modified: trunk/kernel/kgdb.c (8999 => 9000)


--- trunk/kernel/kgdb.c	2010-07-21 10:55:07 UTC (rev 8999)
+++ trunk/kernel/kgdb.c	2010-07-21 11:02:16 UTC (rev 9000)
@@ -1521,8 +1521,7 @@
 
 	atomic_dec(&cpu_in_kgdb[ks->cpu]);
 
-	if (!kgdb_single_step &&
-		!((arch_kgdb_ops.flags & KGDB_THR_PROC_SWAP) &&
+	if (!kgdb_single_step && !((arch_kgdb_ops.flags & KGDB_THR_PROC_SWAP) &&
 		kgdb_contthread)) {
 		for (i = NR_CPUS-1; i >= 0; i--)
 			atomic_dec(&passive_cpu_wait[i]);
@@ -1549,7 +1548,7 @@
 	/* Free kgdb_active */
 	atomic_set(&kgdb_active, -1);
 	/* wake up next master cpu when do real cpu switch */
-	if ((arch_kgdb_ops.flags & KGDB_THR_PROC_SWAP) &&
+	if (!kgdb_single_step && (arch_kgdb_ops.flags & KGDB_THR_PROC_SWAP) &&
 		kgdb_contthread) {
 		i = -(ks->kgdb_usethreadid + 2);
 		atomic_dec(&passive_cpu_wait[i]);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to