diff options
author | Leo Yan <leo.yan@linaro.org> | 2017-08-07 18:14:37 +0800 |
---|---|---|
committer | Joel Fernandes <joelaf@google.com> | 2017-10-27 18:04:43 +0000 |
commit | effc721b3c9b3bd258313450cdfd3d0e644f4d85 (patch) | |
tree | 7067a9c18dd9f2e2097108ce2e95b460e2c6f1ed | |
parent | e3ba92c160d3fb21af5b28a21c63851fad21b168 (diff) |
sched/fair: remove useless variable in find_best_target
Patch 5680f23f20c7 ("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: Leo Yan <leo.yan@linaro.org>
-rw-r--r-- | kernel/sched/fair.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 6023d9e3a9f5..9bc717ef81f5 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -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; } |