OSDN Git Service

ANDROID: sched: Introduce sysctl_sched_cstate_aware
authorQuentin Perret <quentin.perret@arm.com>
Mon, 23 Jul 2018 14:14:59 +0000 (15:14 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commit4b7aebdf8d0dade8794c9a88d2ee441e4606d20a
tree4a1cf4c4f42ddd6af3e65316bc36e73bb306da92
parent8d1d49582605be072dfb0f1ffac97bd03fd79ffc
ANDROID: sched: Introduce sysctl_sched_cstate_aware

Introduce a new sysctl for this option, 'sched_cstate_aware'.
When this is enabled, the scheduler can make use of the idle state
indexes in order to break the tie between potential CPU candidates.

This patch is based on 7f6fb825d6bc ("ANDROID: sched: EAS: take cstate
into account when selecting idle core") from android-4.14. All the
credits goes to the authors.

Change-Id: Ia076cf32faff91e90905291fa6f7924dc3dd6458
Signed-off-by: Quentin Perret <quentin.perret@arm.com>
include/linux/sched/sysctl.h
kernel/sched/fair.c
kernel/sysctl.c