kdb: Use newer api for tasklist scanning
[linux-2.6-microblaze.git] / kernel / debug / kdb / kdb_main.c
index 5c79490..930ac1b 100644 (file)
@@ -2299,10 +2299,10 @@ void kdb_ps_suppressed(void)
                if (kdb_task_state(p, mask_I))
                        ++idle;
        }
-       kdb_do_each_thread(g, p) {
+       for_each_process_thread(g, p) {
                if (kdb_task_state(p, mask_M))
                        ++daemon;
-       } kdb_while_each_thread(g, p);
+       }
        if (idle || daemon) {
                if (idle)
                        kdb_printf("%d idle process%s (state I)%s\n",
@@ -2370,12 +2370,12 @@ static int kdb_ps(int argc, const char **argv)
        }
        kdb_printf("\n");
        /* Now the real tasks */
-       kdb_do_each_thread(g, p) {
+       for_each_process_thread(g, p) {
                if (KDB_FLAG(CMD_INTERRUPT))
                        return 0;
                if (kdb_task_state(p, mask))
                        kdb_ps1(p);
-       } kdb_while_each_thread(g, p);
+       }
 
        return 0;
 }