hikey: powerHAL: Update PowerHAL for top-app category and other tweaks
The initial EAS hikey powerhal was added before N was released, which
introduced the top-app category. So refactor the code to use top-app.
This also tweaks the build so that the module can be more easily
reused on other hardware.
Change-Id: I2847cbf62ea45b15fa2b8d3ee249c153cea351b0
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/init.common.rc b/init.common.rc
index 81c7aa2..11bc675 100644
--- a/init.common.rc
+++ b/init.common.rc
@@ -66,10 +66,15 @@
#
# 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/foreground/schedtune.boost 10
+
+ 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