projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1314562
)
sched: Use for_each_class macro in move_one_task()
author
Hiroshi Shimamoto
<h-shimamoto@ct.jp.nec.com>
Tue, 18 Aug 2009 04:01:01 +0000
(13:01 +0900)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 20 Aug 2009 11:00:30 +0000
(13:00 +0200)
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>
kernel/sched.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 7f83be35d65c623ff3f15670cc73f444019fc33e..1b529efe887271848bac20f12374e10baccefc50 100644
(file)
--- 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,
{
const struct sched_class *class;
- for
(class = sched_class_highest; class; class = class->next)
+ for
_each_class(class) {
if (class->move_one_task(this_rq, this_cpu, busiest, sd, idle))
return 1;
+ }
return 0;
}