Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58afaac0 authored by Chris Redpath's avatar Chris Redpath
Browse files

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: default avatarChris Redpath <chris.redpath@arm.com>
parent 50c26fdb
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -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