diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-08-13 15:19:56 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-08-20 03:47:17 -0400 |
commit | d38e83c715270cc2e137bbf6f25206c8c023896b (patch) | |
tree | 6308f402230920f4fdf7a8adbb978bbd296bfb6d /kernel/sched/debug.c | |
parent | 5d07f4202c5d63b73ba1734ed38e08461a689313 (diff) |
sched: s/do_each_thread/for_each_process_thread/ in debug.c
Change kernel/sched/debug.c to use for_each_process_thread().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <umgwanakikbuti@gmail.com>
Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Frank Mayhar <fmayhar@google.com>
Cc: Frederic Weisbecker <fweisbec@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Sanjay Rao <srao@redhat.com>
Cc: Larry Woodman <lwoodman@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20140813191956.GA19324@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/debug.c')
-rw-r--r-- | 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 627b3c34b821..c7fe1ea0e8ab 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) | |||
160 | "----------------------------------------------------\n"); | 160 | "----------------------------------------------------\n"); |
161 | 161 | ||
162 | read_lock_irqsave(&tasklist_lock, flags); | 162 | read_lock_irqsave(&tasklist_lock, flags); |
163 | 163 | for_each_process_thread(g, p) { | |
164 | do_each_thread(g, p) { | ||
165 | if (task_cpu(p) != rq_cpu) | 164 | if (task_cpu(p) != rq_cpu) |
166 | continue; | 165 | continue; |
167 | 166 | ||
168 | print_task(m, rq, p); | 167 | print_task(m, rq, p); |
169 | } while_each_thread(g, p); | 168 | } |
170 | |||
171 | read_unlock_irqrestore(&tasklist_lock, flags); | 169 | read_unlock_irqrestore(&tasklist_lock, flags); |
172 | } | 170 | } |
173 | 171 | ||