hikey: Add schedtune init.rc changes
Add init.rc changes to set initial schedtune values
and set the permissions properly.
Change-Id: I7b0d4ef630a17ff7c62af6fd0a78b55baa9f2333
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/init.hikey.rc b/init.hikey.rc
index bf16d91..58e0a8c 100644
--- a/init.hikey.rc
+++ b/init.hikey.rc
@@ -67,6 +67,15 @@
# little cores, not on bigs to be used only by init
write /dev/cpuset/system-background/cpus 0-4
+ #
+ # EAS stune boosting interfaces
+ #
+ chown system system /sys/fs/cgroup/stune/foreground/schedtune.boost
+ chown system system /sys/fs/cgroup/stune/schedtune.boost
+ write /sys/fs/cgroup/stune/foreground/schedtune.boost 10
+ write /sys/fs/cgroup/stune/schedtune.boost 0
+
+
# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
setprop ro.com.google.locationfeatures 1