diff options
| author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2017-08-14 20:43:08 +0200 |
|---|---|---|
| committer | hemantbeast <hemantbeast@gmail.com> | 2017-08-23 20:32:11 +0530 |
| commit | c482fcae366c79e26e94c720472c3198091b81cd (patch) | |
| tree | ff1d8c333a889a585234b6b85e15f7eff839bcb8 | |
| parent | a19bf7ce31ce175f8a069d39e79ee43364ecca60 (diff) | |
s2: use restorecon after we've changed governor
Change-Id: Ibb6d782682263ab36c35456bae2880fb0adc4562
| -rw-r--r-- | rootdir/init.qcom.post_boot.sh | 2 | ||||
| -rw-r--r-- | rootdir/init.qcom.power.rc | 2 | ||||
| -rwxr-xr-x | rootdir/init.qcom.rc | 1 | ||||
| -rw-r--r-- | sepolicy/qti_init_shell.te | 2 |
4 files changed, 6 insertions, 1 deletions
diff --git a/rootdir/init.qcom.post_boot.sh b/rootdir/init.qcom.post_boot.sh index 64ee2db..1acada0 100644 --- a/rootdir/init.qcom.post_boot.sh +++ b/rootdir/init.qcom.post_boot.sh @@ -164,6 +164,7 @@ case "$target" in echo 1 > /sys/devices/system/cpu/cpu5/online echo 1 > /sys/devices/system/cpu/cpu6/online echo 1 > /sys/devices/system/cpu/cpu7/online + restorecon -R /sys/devices/system/cpu # Enable Low power modes echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled @@ -335,6 +336,7 @@ case "$target" in echo 1 > /sys/devices/system/cpu/cpu5/online echo 1 > /sys/devices/system/cpu/cpu6/online echo 1 > /sys/devices/system/cpu/cpu7/online + restorecon -R /sys/devices/system/cpu if [ `cat /sys/devices/soc0/revision` == "1.0" ]; then # Disable l2-pc and l2-gdhs low power modes diff --git a/rootdir/init.qcom.power.rc b/rootdir/init.qcom.power.rc index 37d61ae..98e22d0 100644 --- a/rootdir/init.qcom.power.rc +++ b/rootdir/init.qcom.power.rc @@ -40,6 +40,8 @@ on charger write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "powersave" write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 400000 + restorecon -R /sys/devices/system/cpu + # Bring CPUs offline write /sys/devices/system/cpu/cpu1/online 0 write /sys/devices/system/cpu/cpu2/online 0 diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 5792227..d87ac21 100755 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -329,7 +329,6 @@ on property:persist.sys.ssr.enable_ramdumps=0 on property:sys.boot_completed=1 write /dev/kmsg "Boot completed " - # CPE fw_name used by sound trigger HAL chown media audio /sys/kernel/wcd_cpe0/fw_name start qcom-post-boot diff --git a/sepolicy/qti_init_shell.te b/sepolicy/qti_init_shell.te index 01f2138..8ebc9cc 100644 --- a/sepolicy/qti_init_shell.te +++ b/sepolicy/qti_init_shell.te @@ -1,2 +1,4 @@ allow qti_init_shell sensors_persist_file:file { rw_file_perms }; allow qti_init_shell ctl_default_prop:property_service { set }; + +allow qti_init_shell sysfs_rqstats:dir { r_dir_perms }; |
