sched/fair: refactor find_best_target() for simplicity
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Sat, 7 Jan 2017 14:33:51 +0000 (14:33 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 21 Jun 2017 11:07:32 +0000 (16:37 +0530)
commit8b4d10e09b630d0dc2dda0803a583b18bfd7eea1
tree21107776bb399e4524cf504120bddac21f063f8c
parent1c4d0672bebacc1f362cfe9c0cef9755dbd77a8a
sched/fair: refactor find_best_target() for simplicity

Simplify backup_capacity handling and use 'unsigned long'
data type for cpu capacity, simplify target_util handling,
simplify idle_idx handling & refactor min_util, new_util.

Also return first idle cpu for prefer_idle task immediately.

Change-Id: Ic89e140f7b369f3965703fdc8463013d16e9b94a
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c