hikey960: create dedicated .rc files for power parameters
Hikey960 has different CPU architecture with Hikey, these two platforms
should use their own dedicate configurations for power, especially for
EAS related settings.
This patch is to split the power related settings into two files, one
is init.hikey.power.rc and another is init.hikey960.power.rc. The main
different setting for power setting is related with EAS parameters in
proc nodes.
For Hikey we set the parameters as below:
write /proc/sys/kernel/sched_is_big_little 0
write /proc/sys/kernel/sched_cstate_aware 1
write /proc/sys/kernel/sched_sync_hint_enable 1
write /proc/sys/kernel/sched_initial_task_util 0
For Hikey960 we set the parameters as below:
write /sys/kernel/debug/sched_features "ENERGY_AWARE"
write /proc/sys/kernel/sched_is_big_little 1
write /proc/sys/kernel/sched_cstate_aware 1
write /proc/sys/kernel/sched_sync_hint_enable 0
write /proc/sys/kernel/sched_initial_task_util 0
On Hikey960 we also set default boost margin to 50%, and
touch-boost to 100%. This will let the CPU frequency to reach
highest OPP so can reduce scheduling latency; this is used to
improve the GPU rendering performance.
write /dev/stune/top-app/schedtune.boost 50
write /dev/stune/foreground/schedtune.boost 50
Change-Id: I641f5c78075012153fb73e830cb31dfc8dfd6e87
Signed-off-by: Leo Yan <leo.yan@linaro.org>
[jstultz: Added and tweaked some of the parameters to work with
the parameterized powerHAL]
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/init.common.rc b/init.common.rc
index 8d7a35d..41f582a 100644
--- a/init.common.rc
+++ b/init.common.rc
@@ -1,4 +1,5 @@
import init.${ro.hardware}.usb.rc
+import init.${ro.hardware}.power.rc
on init
# mount debugfs
@@ -41,21 +42,6 @@
# Set supported opengles version
setprop ro.opengles.version 196608
- #
- # EAS stune boosting interfaces
- #
- chown system system /dev/stune/top-app/schedtune.boost
- chown system system /dev/stune/top-app/schedtune.prefer_idle
- chown system system /dev/stune/foreground/schedtune.boost
- chown system system /dev/stune/foreground/schedtune.prefer_idle
- chown system system /dev/stune/schedtune.boost
-
- write /dev/stune/top-app/schedtune.boost 10
- write /dev/stune/top-app/schedtune.prefer_idle 1
- write /dev/stune/foreground/schedtune.boost 0
- write /dev/stune/foreground/schedtune.prefer_idle 1
- write /dev/stune/schedtune.boost 0
-
# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector