Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0eab9146 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: style cleanup, #2



style cleanup of various changes that were done recently.

no code changed:

      text    data     bss     dec     hex filename
     26399    2578      48   29025    7161 sched.o.before
     26399    2578      48   29025    7161 sched.o.after

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent d7876a08
Loading
Loading
Loading
Loading
+17 −15
Original line number Original line Diff line number Diff line
@@ -240,7 +240,7 @@ struct task_group init_task_group = {
};
};


#ifdef CONFIG_FAIR_USER_SCHED
#ifdef CONFIG_FAIR_USER_SCHED
# define INIT_TASK_GROUP_LOAD	2*NICE_0_LOAD
# define INIT_TASK_GROUP_LOAD	(2*NICE_0_LOAD)
#else
#else
# define INIT_TASK_GROUP_LOAD	NICE_0_LOAD
# define INIT_TASK_GROUP_LOAD	NICE_0_LOAD
#endif
#endif
@@ -5847,9 +5847,10 @@ static void rq_attach_root(struct rq *rq, struct root_domain *rd)
	if (rq->rd) {
	if (rq->rd) {
		struct root_domain *old_rd = rq->rd;
		struct root_domain *old_rd = rq->rd;


		for (class = sched_class_highest; class; class = class->next)
		for (class = sched_class_highest; class; class = class->next) {
			if (class->leave_domain)
			if (class->leave_domain)
				class->leave_domain(rq);
				class->leave_domain(rq);
		}


		if (atomic_dec_and_test(&old_rd->refcount))
		if (atomic_dec_and_test(&old_rd->refcount))
			kfree(old_rd);
			kfree(old_rd);
@@ -5858,9 +5859,10 @@ static void rq_attach_root(struct rq *rq, struct root_domain *rd)
	atomic_inc(&rd->refcount);
	atomic_inc(&rd->refcount);
	rq->rd = rd;
	rq->rd = rd;


	for (class = sched_class_highest; class; class = class->next)
	for (class = sched_class_highest; class; class = class->next) {
		if (class->join_domain)
		if (class->join_domain)
			class->join_domain(rq);
			class->join_domain(rq);
	}


	spin_unlock_irqrestore(&rq->lock, flags);
	spin_unlock_irqrestore(&rq->lock, flags);
}
}
@@ -5898,8 +5900,8 @@ static struct root_domain *alloc_rootdomain(const cpumask_t *map)
 * Attach the domain 'sd' to 'cpu' as its base domain. Callers must
 * Attach the domain 'sd' to 'cpu' as its base domain. Callers must
 * hold the hotplug lock.
 * hold the hotplug lock.
 */
 */
static void cpu_attach_domain(struct sched_domain *sd,
static void
			      struct root_domain *rd, int cpu)
cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu)
{
{
	struct rq *rq = cpu_rq(cpu);
	struct rq *rq = cpu_rq(cpu);
	struct sched_domain *tmp;
	struct sched_domain *tmp;