Message ID | 20100707175406.GA28424@oksana.dev.rtsoft.ru |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/kernel/kgdb.c b/kernel/kgdb.c index e7a2274..65bf75d 100644 --- a/kernel/kgdb.c +++ b/kernel/kgdb.c @@ -1522,7 +1522,9 @@ return_normal: * from the debugger. */ for_each_online_cpu(i) { - while (atomic_read(&cpu_in_kgdb[i])) + while (atomic_read(&cpu_in_kgdb[i]) && + !(kgdb_info[i].exception_state & + DCPU_WANT_MASTER)) cpu_relax(); } }