diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2009-08-18 00:01:01 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-20 07:00:30 -0400 |
commit | cde7e5ca4e329a157108769d1f752d191cbb71c6 (patch) | |
tree | 654984be0202a0276af03379b0a48f2a809a4a27 /kernel/sched.c | |
parent | 1314562a9ae5f39f6f595656023c1baf970831ef (diff) |
sched: Use for_each_class macro in move_one_task()
Replace for loop with the macro for_each_class to cleanup.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
LKML-Reference: <4A8A277D.4090304@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 7f83be35d65c..1b529efe8872 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3461,9 +3461,10 @@ static int move_one_task(struct rq *this_rq, int this_cpu, struct rq *busiest, | |||
3461 | { | 3461 | { |
3462 | const struct sched_class *class; | 3462 | const struct sched_class *class; |
3463 | 3463 | ||
3464 | for (class = sched_class_highest; class; class = class->next) | 3464 | for_each_class(class) { |
3465 | if (class->move_one_task(this_rq, this_cpu, busiest, sd, idle)) | 3465 | if (class->move_one_task(this_rq, this_cpu, busiest, sd, idle)) |
3466 | return 1; | 3466 | return 1; |
3467 | } | ||
3467 | 3468 | ||
3468 | return 0; | 3469 | return 0; |
3469 | } | 3470 | } |