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

Commit 16419700 authored by Valentin Schneider's avatar Valentin Schneider Committed by Chris Redpath
Browse files

FROMLIST: sched/fair: Change prefer_sibling type to bool



This variable is entirely local to update_sd_lb_stats, so we can
safely change its type and slightly clean up its initialisation.

Signed-off-by: default avatarValentin Schneider <valentin.schneider@arm.com>
[from https://lore.kernel.org/lkml/1530699470-29808-7-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>
Change-Id: I8d3cc862292290c952505ff78e41cfe6b04bf168
parent d756b4be
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -9242,11 +9242,9 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd
	struct sched_group *sg = env->sd->groups;
	struct sg_lb_stats *local = &sds->local_stat;
	struct sg_lb_stats tmp_sgs;
	int load_idx, prefer_sibling = 0;
	int load_idx;
	bool overload = false, overutilized = false, misfit_task = false;

	if (child && child->flags & SD_PREFER_SIBLING)
		prefer_sibling = 1;
	bool prefer_sibling = child && child->flags & SD_PREFER_SIBLING;

#ifdef CONFIG_NO_HZ_COMMON
	if (env->idle == CPU_NEWLY_IDLE) {