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

Commit 168dc6ff authored by Valentin Schneider's avatar Valentin Schneider Committed by Gerrit - the friendly Code Review server
Browse files

FROMLIST: sched: Change root_domain->overload type to int



sizeof(_Bool) is implementation defined, so let's just go with 'int' as
is done for other structures e.g. sched_domain_shared->has_idle_cores.

The local 'overload' variable used in update_sd_lb_stats can remain
bool, as it won't impact any struct layout and can be assigned to the
root_domain field.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>

Change-Id: I24c3ee7fc9a0aa76c3a7a1369714248703e73af9
Signed-off-by: default avatarValentin Schneider <valentin.schneider@arm.com>
[from https://lore.kernel.org/lkml/1530699470-29808-8-git-send-email-morten.rasmussen@arm.com/

]
Signed-off-by: default avatarValentin Schneider <valentin.schneider@arm.com>
Signed-off-by: default avatarChris Redpath <chris.redpath@arm.com>
Git-commit: 14b1b1f5
Git-repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarPuja Gupta <pujag@codeaurora.org>
parent 2c2ab0de
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -696,7 +696,7 @@ struct root_domain {
	cpumask_var_t online;

	/* Indicate more than one runnable task for any CPU */
	bool overload;
	int overload;

	/*
	 * The bit corresponding to a CPU gets set here if such CPU has more
@@ -1762,7 +1762,7 @@ static inline void add_nr_running(struct rq *rq, unsigned count)
	if (prev_nr < 2 && rq->nr_running >= 2) {
#ifdef CONFIG_SMP
		if (!rq->rd->overload)
			rq->rd->overload = true;
			rq->rd->overload = 1;
#endif
	}