sched: EAS: take cstate into account when selecting idle core
authorSrinath Sridharan <srinathsr@google.com>
Thu, 14 Jul 2016 08:57:29 +0000 (09:57 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:29:32 +0000 (14:59 +0530)
commit7169e3a0733b59fc82debcd0f1da5ac7b8ecdfdb
tree42e035bc2b17447ef6e5a0149113413570a5f5f5
parent24884e54340e35d43bd09af0b12caef57a63458f
sched: EAS: take cstate into account when selecting idle core

Introduce a new sysctl for this option, 'sched_cstate_aware'.
When this is enabled, select_idle_sibling in CFS is modified to
choose the idle CPU in the sibling group which has the lowest
idle state index - idle state indexes are assumed to increase
as sleep depth and hence wakeup latency increase. In this way,
we attempt to minimise wakeup latency when an idle CPU is
required.

Signed-off-by: Srinath Sridharan <srinathsr@google.com>
Includes:
sched: EAS: fix select_idle_sibling

when sysctl_sched_cstate_aware is enabled, best_idle cpu will not be chosen
in the original flow because it will goto done directly

Bug: 30107557
Change-Id: Ie09c2e3960cafbb976f8d472747faefab3b4d6ac
Signed-off-by: martin_liu <martin_liu@htc.com>
include/linux/sched/sysctl.h
kernel/sched/fair.c
kernel/sysctl.c