OSDN Git Service

sched: Take cluster's minimum power into account for optimizing sbc()
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Mon, 14 Dec 2015 08:53:24 +0000 (14:23 +0530)
committerDavid Keitel <dkeitel@codeaurora.org>
Thu, 24 Mar 2016 04:25:14 +0000 (21:25 -0700)
commit8cd1d7ef162d0911d18cf971c4a34c07bb994a80
tree5919831710828c727fe46a0177f0a93ed5d38091
parent6418f213abdc8823a7aa75fa4e504d3d83effa57
sched: Take cluster's minimum power into account for optimizing sbc()

The select_best_cpu() algorithm iterates over all the clusters and
selects the most power efficient CPU that satisfies the task needs.
During the search, skip the next cluster if its minimum power cost
is higher than the power cost of an eligible CPU found in the previous
cluster.

In a b.L system, if the BIG cluster minimum power cost is higher than
the maximum power cost of the little cluster, this optimization avoids
searching the BIG cluster if an eligible CPU is found in the little
cluster.

Change-Id: I5e3755f107edb6c72180edbec2a658be931c276d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
kernel/sched/core.c
kernel/sched/fair.c
kernel/sched/sched.h