vendor/cm: Clean up init.local.rc
These changes fix the error below found in a logcat and clean up some other issues in the file. "E CM PowerHAL: Error opening /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate: Permission denied" PS2: tweaked permissions & removed dupilcated entries Change-Id: I9b1bbe66c36ba0d8de13b8cb9351d2952851c250
This commit is contained in:
parent
c7bcf25f13
commit
461e4ecb37
@ -30,6 +30,7 @@ on boot
|
|||||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/boost
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/boost
|
||||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
|
||||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
|
||||||
|
chown 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse
|
||||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost
|
||||||
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost
|
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost
|
||||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
|
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
|
||||||
@ -43,7 +44,7 @@ on boot
|
|||||||
chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostpulse
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/boostpulse
|
||||||
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boostpulse
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boostpulse
|
||||||
chown system system /sys/devices/system/cpu/cpufreq/ondemand/boosttime
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/boosttime
|
||||||
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/boosttime
|
||||||
chown system system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
|
||||||
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
|
chmod 0660 /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
|
||||||
chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential
|
chown system system /sys/devices/system/cpu/cpufreq/ondemand/down_differential
|
||||||
@ -71,11 +72,11 @@ on boot
|
|||||||
|
|
||||||
# Assume SMP uses shared cpufreq policy for all CPUs
|
# Assume SMP uses shared cpufreq policy for all CPUs
|
||||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||||
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
||||||
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
||||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||||
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||||
|
|
||||||
chown system system /sys/block/mmcblk0/queue/scheduler
|
chown system system /sys/block/mmcblk0/queue/scheduler
|
||||||
chmod 0664 /sys/block/mmcblk0/queue/scheduler
|
chmod 0664 /sys/block/mmcblk0/queue/scheduler
|
||||||
@ -90,14 +91,6 @@ on boot
|
|||||||
write /sys/kernel/mm/ksm/sleep_millisecs 1500
|
write /sys/kernel/mm/ksm/sleep_millisecs 1500
|
||||||
write /sys/kernel/mm/ksm/pages_to_scan 256
|
write /sys/kernel/mm/ksm/pages_to_scan 256
|
||||||
|
|
||||||
# allow system to modify cpufreq control files
|
|
||||||
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
|
||||||
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
|
||||||
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
|
||||||
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
|
||||||
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
|
||||||
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
|
||||||
|
|
||||||
chown system system /dev/cpuctl/apps/cpu.notify_on_migrate
|
chown system system /dev/cpuctl/apps/cpu.notify_on_migrate
|
||||||
chmod 0644 /dev/cpuctl/apps/cpu.notify_on_migrate
|
chmod 0644 /dev/cpuctl/apps/cpu.notify_on_migrate
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user