From 4462dfa5185ed59c9d1b62ee62554b054bf58940 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Fri, 18 Sep 2015 04:27:35 -0700 Subject: [PATCH] cm: Update shared init.rc * Remove cruft * Add LiveDisplay sysfs Change-Id: I6e3ca9048c9196dbc85151f102fb22ff5a4222b4 --- prebuilt/common/etc/init.local.rc | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc index a38f62c0..73e7aaec 100644 --- a/prebuilt/common/etc/init.local.rc +++ b/prebuilt/common/etc/init.local.rc @@ -137,14 +137,6 @@ on boot chown system system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load chmod 0664 /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load - # Assume SMP uses shared cpufreq policy for all CPUs - chown system system /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 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq - chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq - chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq - chown system system /sys/block/mmcblk0/queue/scheduler chmod 0664 /sys/block/mmcblk0/queue/scheduler restorecon /sys/block/mmcblk0/queue/scheduler @@ -152,6 +144,16 @@ on boot chown system system /dev/cpuctl/cpu.notify_on_migrate chmod 0664 /dev/cpuctl/cpu.notify_on_migrate + # LiveDisplay sysfs + chown system system /sys/devices/virtual/graphics/fb0/aco + chmod 0660 /sys/devices/virtual/graphics/fb0/aco + chown system system /sys/devices/virtual/graphics/fb0/cabc + chmod 0660 /sys/devices/virtual/graphics/fb0/cabc + chown system system /sys/devices/virtual/graphics/fb0/rgb + chmod 0660 /sys/devices/virtual/graphics/fb0/rgb + chown system system /sys/devices/virtual/graphics/fb0/sre + chmod 0660 /sys/devices/virtual/graphics/fb0/sre + # Define TCP delayed ack settings for WiFi & LTE chown system system /sys/kernel/ipv4/tcp_delack_seg chown system system /sys/kernel/ipv4/tcp_use_userconfig @@ -209,4 +211,5 @@ on property:sys.io.scheduler=cfq # Set slice_idle to 0 for BFQ on property:sys.io.scheduler=bfq - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 \ No newline at end of file + write /sys/block/mmcblk0/queue/iosched/slice_idle 0 +