kdb: Use newer api for tasklist scanning
[linux-2.6-microblaze.git] / kernel / debug / kdb / kdb_bt.c
index 18e03ab..1f9f0e4 100644 (file)
@@ -149,14 +149,14 @@ kdb_bt(int argc, const char **argv)
                                return 0;
                }
                /* Now the inactive tasks */
-               kdb_do_each_thread(g, p) {
+               for_each_process_thread(g, p) {
                        if (KDB_FLAG(CMD_INTERRUPT))
                                return 0;
                        if (task_curr(p))
                                continue;
                        if (kdb_bt1(p, mask, btaprompt))
                                return 0;
-               } kdb_while_each_thread(g, p);
+               }
        } else if (strcmp(argv[0], "btp") == 0) {
                struct task_struct *p;
                unsigned long pid;