OSDN Git Service

ANDROID: sched: fair: Bypass energy-aware wakeup for prefer-idle tasks
authorChris Redpath <chris.redpath@arm.com>
Tue, 19 Dec 2017 19:32:02 +0000 (19:32 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commit9b96488d21ff417119dec30e79b660b62d4f4891
treeb39490972b336098f7ae449f9e9c1e72d2580651
parent3ac953518970f157d0ae0c0a7b27b12e6e78a36e
ANDROID: sched: fair: Bypass energy-aware wakeup for prefer-idle tasks

Use the upstream slow path to find an idle cpu for prefer-idle tasks.
This slow-path is actually faster than the EAS path we are currently
going through (compute_energy()) which is really slow.

No performance degradation is seen with this and it reduces the delta
quite a bit between upstream and out of tree code.

It's not clear yet if using the mainline slow path task placement when
a task has the schedtune attribute prefer_idle=1 is the right thing to
do for products. Put the option to disable this behind a sched feature
so we can try out both options.

Signed-off-by: Joel Fernandes <joelaf@google.com>
(refactored for 4.14 version)
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
(cherry picked from commit c0ff131c88f68e4985793663144b6f9cf77be9d3)
[ - Refactored for 4.17 version
  - Adjusted the commit header to the new function names ]
Signed-off-by: Quentin Perret <quentin.perret@arm.com>
Change-Id: Icf762a101c92c0e3f9e61df0370247fa15455581
kernel/sched/fair.c
kernel/sched/features.h