Change kernel/sched/debug.c to use for_each_process_thread().

Signed-off-by: Oleg Nesterov <[email protected]>
---
 kernel/sched/debug.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 627b3c3..c7fe1ea 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -160,14 +160,12 @@ static void print_rq(struct seq_file *m, struct rq *rq, 
int rq_cpu)
        "----------------------------------------------------\n");
 
        read_lock_irqsave(&tasklist_lock, flags);
-
-       do_each_thread(g, p) {
+       for_each_process_thread(g, p) {
                if (task_cpu(p) != rq_cpu)
                        continue;
 
                print_task(m, rq, p);
-       } while_each_thread(g, p);
-
+       }
        read_unlock_irqrestore(&tasklist_lock, flags);
 }
 
-- 
1.5.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to