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

Commit effc721b authored by Leo Yan's avatar Leo Yan Committed by Joel Fernandes
Browse files

sched/fair: remove useless variable in find_best_target



Patch 5680f23f ("sched/fair: streamline find_best_target
heuristics") has reworked function find_best_target, as result the
variable "target_util" is useless now. So remove it.

Change-Id: I5447062419e5828a49115119984fac6cd37db034
Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
parent e3ba92c1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -6350,7 +6350,6 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,
	unsigned long target_capacity = ULONG_MAX;
	unsigned long min_wake_util = ULONG_MAX;
	unsigned long target_max_spare_cap = 0;
	unsigned long target_util = ULONG_MAX;
	unsigned long best_active_util = ULONG_MAX;
	int best_idle_cstate = INT_MAX;
	struct sched_domain *sd;
@@ -6579,7 +6578,6 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,

			target_max_spare_cap = capacity_orig - new_util;
			target_capacity = capacity_orig;
			target_util = new_util;
			target_cpu = i;
		}