ANDROID: sched: Add KConfig option to set ENERGY_AWARE sched feature on

This option defaults the ENERGY_AWARE scheduling feature to true,
as without SCHED_DEBUG set this feature can't be enabled or disabled
via sysctl.

Change-Id: Ibf8e5d9d8aedf5cc8f0ef322279209ca65a9786b
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
tirimbino
Chris Redpath 7 years ago
parent 50c26fdb74
commit 58afaac038
  1. 10
      init/Kconfig
  2. 4
      kernel/sched/features.h

@ -959,6 +959,16 @@ config SCHED_AUTOGROUP
desktop applications. Task group autogeneration is currently based
upon task session.
config DEFAULT_USE_ENERGY_AWARE
bool "Default to enabling the Energy Aware Scheduler feature"
default n
help
This option defaults the ENERGY_AWARE scheduling feature to true,
as without SCHED_DEBUG set this feature can't be enabled or disabled
via sysctl.
Say N if unsure.
config SYSFS_DEPRECATED
bool "Enable deprecated sysfs features to support old userspace tools"
depends on SYSFS

@ -90,4 +90,8 @@ SCHED_FEAT(WA_BIAS, true)
* Energy aware scheduling. Use platform energy model to guide scheduling
* decisions optimizing for energy efficiency.
*/
#ifdef CONFIG_DEFAULT_USE_ENERGY_AWARE
SCHED_FEAT(ENERGY_AWARE, true)
#else
SCHED_FEAT(ENERGY_AWARE, false)
#endif

Loading…
Cancel
Save