diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-08-13 15:19:53 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-08-20 03:47:17 -0400 |
commit | 5d07f4202c5d63b73ba1734ed38e08461a689313 (patch) | |
tree | df2e1c585214461605a2563670397e262805e3ef /kernel/sched | |
parent | 83d7f2424741c9dc76c21377c9d00d47abaf88df (diff) |
sched: s/do_each_thread/for_each_process_thread/ in core.c
Change kernel/sched/core.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/20140813191953.GA19315@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 7d1ec6e60535..4f2826f46e95 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -4505,7 +4505,7 @@ void show_state_filter(unsigned long state_filter) | |||
4505 | " task PC stack pid father\n"); | 4505 | " task PC stack pid father\n"); |
4506 | #endif | 4506 | #endif |
4507 | rcu_read_lock(); | 4507 | rcu_read_lock(); |
4508 | do_each_thread(g, p) { | 4508 | for_each_process_thread(g, p) { |
4509 | /* | 4509 | /* |
4510 | * reset the NMI-timeout, listing all files on a slow | 4510 | * reset the NMI-timeout, listing all files on a slow |
4511 | * console might take a lot of time: | 4511 | * console might take a lot of time: |
@@ -4513,7 +4513,7 @@ void show_state_filter(unsigned long state_filter) | |||
4513 | touch_nmi_watchdog(); | 4513 | touch_nmi_watchdog(); |
4514 | if (!state_filter || (p->state & state_filter)) | 4514 | if (!state_filter || (p->state & state_filter)) |
4515 | sched_show_task(p); | 4515 | sched_show_task(p); |
4516 | } while_each_thread(g, p); | 4516 | } |
4517 | 4517 | ||
4518 | touch_all_softlockup_watchdogs(); | 4518 | touch_all_softlockup_watchdogs(); |
4519 | 4519 | ||
@@ -7137,7 +7137,7 @@ void normalize_rt_tasks(void) | |||
7137 | struct rq *rq; | 7137 | struct rq *rq; |
7138 | 7138 | ||
7139 | read_lock_irqsave(&tasklist_lock, flags); | 7139 | read_lock_irqsave(&tasklist_lock, flags); |
7140 | do_each_thread(g, p) { | 7140 | for_each_process_thread(g, p) { |
7141 | /* | 7141 | /* |
7142 | * Only normalize user tasks: | 7142 | * Only normalize user tasks: |
7143 | */ | 7143 | */ |
@@ -7168,8 +7168,7 @@ void normalize_rt_tasks(void) | |||
7168 | 7168 | ||
7169 | __task_rq_unlock(rq); | 7169 | __task_rq_unlock(rq); |
7170 | raw_spin_unlock(&p->pi_lock); | 7170 | raw_spin_unlock(&p->pi_lock); |
7171 | } while_each_thread(g, p); | 7171 | } |
7172 | |||
7173 | read_unlock_irqrestore(&tasklist_lock, flags); | 7172 | read_unlock_irqrestore(&tasklist_lock, flags); |
7174 | } | 7173 | } |
7175 | 7174 | ||
@@ -7357,10 +7356,10 @@ static inline int tg_has_rt_tasks(struct task_group *tg) | |||
7357 | { | 7356 | { |
7358 | struct task_struct *g, *p; | 7357 | struct task_struct *g, *p; |
7359 | 7358 | ||
7360 | do_each_thread(g, p) { | 7359 | for_each_process_thread(g, p) { |
7361 | if (rt_task(p) && task_rq(p)->rt.tg == tg) | 7360 | if (rt_task(p) && task_rq(p)->rt.tg == tg) |
7362 | return 1; | 7361 | return 1; |
7363 | } while_each_thread(g, p); | 7362 | } |
7364 | 7363 | ||
7365 | return 0; | 7364 | return 0; |
7366 | } | 7365 | } |