ANDROID: sched/fair: return idle CPU immediately for prefer_idle
authorChris Redpath <chris.redpath@arm.com>
Fri, 8 Jun 2018 16:16:50 +0000 (17:16 +0100)
committerIonela Voinescu <ionela.voinescu@arm.com>
Wed, 18 Jul 2018 09:47:28 +0000 (10:47 +0100)
commitdc6f7513623fe5fb4be5018cf334caee5b9ca039
tree70a60427e3792fba7003284ff972b7e994a212d4
parent5f574ff1c8c75ef5d561b3f07d3f0b111976f8e3
ANDROID: sched/fair: return idle CPU immediately for prefer_idle

When a CPU is selected for a prefer_idle task through find_best_target
this CPU will become a target CPU on which we perform an energy diff and
select between the previous CPU and the target CPU based on the estimated
energy consumption for both placements.

For prefer_idle tasks we should favour performance over energy savings
and therefore return a found idle CPU immediately.

Change-Id: I2242a51134ac172dd58b3b08375388a7b4b84af0
Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Suggested-by: Joel Fernandes <joelaf@google.com>
kernel/sched/fair.c