init: fixup cpufreq permissions
Moved patches from init.rc
https://gerrit.omnirom.org/#/c/2919/
It is safe to have read permissions for everyone
Also required for the CPU info overlay service
PS3:
add cpu0-cpu3
PS4:
mke this work on at least a few devices :)
Change-Id: I1de067f63121a8a19f29d4e994fbc3bf73054556
init: added missing permissions
https://gerrit.omnirom.org/#/c/2872/
Else PerformanceControl will not be able to change them
-scaling_min_freq
-scaling_governor
-I/O scheduler
Change-Id: I55eb68087e991a906d91009b0a9bc43f0b162635
Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I27faeb876f17116d51f2b8b6e59584509c221d51
diff --git a/prebuilt/etc/init.local.rc b/prebuilt/etc/init.local.rc
index 203a358..3fbb314 100644
--- a/prebuilt/etc/init.local.rc
+++ b/prebuilt/etc/init.local.rc
@@ -17,10 +17,14 @@
# interactive governor
chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack
+ chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_slack
chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads
+ chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/target_loads
chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
@@ -70,12 +74,13 @@
# Assume SMP uses shared cpufreq policy for all CPUs
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+ chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
- chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
+ chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ # I/O scheduler
chown system system /sys/block/mmcblk0/queue/scheduler
chmod 0664 /sys/block/mmcblk0/queue/scheduler