OSDN Git Service

ANDROID: sched/fair: Energy-aware wake-up task placement
authorMorten Rasmussen <morten.rasmussen@arm.com>
Wed, 30 Mar 2016 13:29:48 +0000 (14:29 +0100)
committerChris Redpath <chris.redpath@arm.com>
Tue, 19 Dec 2017 13:25:42 +0000 (13:25 +0000)
commit3308a3b6c01aecbbece0907333d7c85730e8f1ec
treef2db2e1892657ab06f87735aaaae28cae106c2c6
parent58f9f0c7360ef60ed493f9454b002fefa33adfee
ANDROID: sched/fair: Energy-aware wake-up task placement

When the systems is not overutilized, place waking tasks on the most
energy efficient cpu. Previous attempts reduced the search space by
matching task utilization to cpu capacity before consulting the energy
model as this is an expensive operation. The search heuristics didn't
work very well and lacking any better alternatives this patch takes the
brute-force route and tries all potential targets.

This approach doesn't scale, but it might be sufficient for many
embedded applications while work is continuing on a heuristic that can
minimize the necessary computations. The heuristic must be derrived from
the platform energy model rather than make additional assumptions, such
lower capacity implies better energy efficiency. PeterZ mentioned in the
past that we might be able to derrive some simpler deciding functions
using mathematical (modal?) analysis.

Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
Change-Id: I424e72ab15529e45e8788d109823ae0f6de0d97f
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c