Commit 9761eea8 authored by Ingo Molnar's avatar Ingo Molnar

sched: style cleanups

4 small style cleanups to sched.c: checkpatch.pl is now happy about
the totality of sched.c [ignoring false positives] - yay! ;-)
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 23bdd703
...@@ -1265,9 +1265,9 @@ static int sched_balance_self(int cpu, int flag) ...@@ -1265,9 +1265,9 @@ static int sched_balance_self(int cpu, int flag)
struct sched_domain *tmp, *sd = NULL; struct sched_domain *tmp, *sd = NULL;
for_each_domain(cpu, tmp) { for_each_domain(cpu, tmp) {
/* /*
* If power savings logic is enabled for a domain, stop there. * If power savings logic is enabled for a domain, stop there.
*/ */
if (tmp->flags & SD_POWERSAVINGS_BALANCE) if (tmp->flags & SD_POWERSAVINGS_BALANCE)
break; break;
if (tmp->flags & flag) if (tmp->flags & flag)
...@@ -1350,9 +1350,9 @@ static int wake_idle(int cpu, struct task_struct *p) ...@@ -1350,9 +1350,9 @@ static int wake_idle(int cpu, struct task_struct *p)
if (idle_cpu(i)) if (idle_cpu(i))
return i; return i;
} }
} } else {
else
break; break;
}
} }
return cpu; return cpu;
} }
...@@ -1702,7 +1702,7 @@ static inline void finish_task_switch(struct rq *rq, struct task_struct *prev) ...@@ -1702,7 +1702,7 @@ static inline void finish_task_switch(struct rq *rq, struct task_struct *prev)
/* /*
* Remove function-return probe instances associated with this * Remove function-return probe instances associated with this
* task and put them back on the free list. * task and put them back on the free list.
*/ */
kprobe_flush_task(prev); kprobe_flush_task(prev);
put_task_struct(prev); put_task_struct(prev);
} }
...@@ -5920,6 +5920,7 @@ static int build_sched_domains(const cpumask_t *cpu_map) ...@@ -5920,6 +5920,7 @@ static int build_sched_domains(const cpumask_t *cpu_map)
sched_group_nodes[i] = sg; sched_group_nodes[i] = sg;
for_each_cpu_mask(j, nodemask) { for_each_cpu_mask(j, nodemask) {
struct sched_domain *sd; struct sched_domain *sd;
sd = &per_cpu(node_domains, j); sd = &per_cpu(node_domains, j);
sd->groups = sg; sd->groups = sg;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment