Merge "wahoo: power: switch to libperfmgr for powerhint"

This commit is contained in:
Thierry Strudel
2018-01-05 06:18:34 +00:00
committed by Android (Google) Code Review
16 changed files with 1576 additions and 39 deletions

View File

@@ -385,7 +385,6 @@ on zygote-start
# b/62837579 elabel directory
mkdir /data/misc/elabel 0700 system system
on early-boot
# wait for devices
wait_for_prop sys.qcom.devup 1
@@ -549,11 +548,20 @@ service vendor.per_proxy /vendor/bin/pm-proxy
disabled
on property:sys.post_boot.parsed=1
start vendor.perfd
# Setup permission for powerHAL
chown system system /dev/stune/top-app/schedtune.boost
chown system system /dev/cpu_dma_latency
chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/min_freq
chown system system /sys/class/kgsl/kgsl-3d0/devfreq/min_freq
chown system system /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
chown system system /sys/class/devfreq/soc:qcom,gpubw/min_freq
chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_trigger_count
chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hist_memory
chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_length
chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/min_freq
on property:sys.boot_completed=1
# Enable power setting and set sys.post_boot.parsed to 1
# to start perfd
start vendor.power_sh
# Enable UFS powersaving