sm6150-common: rootdir: Enable idle_state mechanism

Allows us to check the idle state of the display in order to use perf
hints to improve system performance.

Bug: 69270928
Bug: 69915886

Test: Booted and cat-ed the affected files
Change-Id: I8717093e9b8ed9ed35b6ca51a20225abbf71f775
This commit is contained in:
Robb Glasser 2017-12-04 17:28:08 -08:00 committed by Arian
parent c1baef0dd8
commit 3135fd7008
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

@ -182,6 +182,10 @@ case "$soc_id" in
echo 2-5 > /dev/cpuset/system-background/cpus
echo 2-5 > /dev/cpuset/restricted/cpus
# Enable idle state listener
echo 1 > /sys/class/drm/card0/device/idle_encoder_mask
echo 100 > /sys/class/drm/card0/device/idle_timeout_ms
# Turn on sleep modes.
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
;;
@ -296,6 +300,10 @@ case "$soc_id" in
echo 2-5 > /dev/cpuset/system-background/cpus
echo 2-5 > /dev/cpuset/restricted/cpus
# Enable idle state listener
echo 1 > /sys/class/drm/card0/device/idle_encoder_mask
echo 100 > /sys/class/drm/card0/device/idle_timeout_ms
# Turn on sleep modes.
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
;;