Skip to content

Commit 3e5b295

Browse files
Leo Yanpundiramit
authored andcommitted
sched/fair: remove useless variable in find_best_target
Patch 5680f23 ("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>
1 parent b3501ab commit 3e5b295

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

kernel/sched/fair.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6350,7 +6350,6 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,
63506350
unsigned long target_capacity = ULONG_MAX;
63516351
unsigned long min_wake_util = ULONG_MAX;
63526352
unsigned long target_max_spare_cap = 0;
6353-
unsigned long target_util = ULONG_MAX;
63546353
unsigned long best_active_util = ULONG_MAX;
63556354
int best_idle_cstate = INT_MAX;
63566355
struct sched_domain *sd;
@@ -6579,7 +6578,6 @@ static inline int find_best_target(struct task_struct *p, int *backup_cpu,
65796578

65806579
target_max_spare_cap = capacity_orig - new_util;
65816580
target_capacity = capacity_orig;
6582-
target_util = new_util;
65836581
target_cpu = i;
65846582
}
65856583

0 commit comments

Comments
 (0)