diff options
author | Leo Yan <leo.yan@linaro.org> | 2017-08-07 18:14:37 +0800 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2017-11-20 21:15:59 +0530 |
commit | 3e5b2955be414bf44a89a68604ed3a39dc5e5b03 (patch) | |
tree | 691c4fefa590408403d8ecc5c73121ce0fc1b59a /kernel | |
parent | b3501ab0840dca6601eac521abff4bb1a59fb118 (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>
Diffstat (limited to 'kernel')
-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; } |