summaryrefslogtreecommitdiffstats
path: root/rootdir/init.target.rc
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-12-13 02:31:32 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-12-13 02:31:32 +0100
commite7e8f7d29063df2017d419a898fe877b56b14653 (patch)
treeb450d69a7775c0b898e15956fac7069975513aab /rootdir/init.target.rc
parent80d404b929c222f3fdc7ecad7694753c8c27a537 (diff)
parent25eedce86d2723b23b6fc21dece20540f7ec68c0 (diff)
downloaddevice_samsung_i9300-e7e8f7d29063df2017d419a898fe877b56b14653.zip
device_samsung_i9300-e7e8f7d29063df2017d419a898fe877b56b14653.tar.gz
device_samsung_i9300-e7e8f7d29063df2017d419a898fe877b56b14653.tar.bz2
Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_device_samsung_i9300 into replicant-6.0replicant-6.0-alpha-0006
Diffstat (limited to 'rootdir/init.target.rc')
-rw-r--r--rootdir/init.target.rc70
1 files changed, 51 insertions, 19 deletions
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index 45b4501..4fcf34d 100644
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -1,6 +1,57 @@
on init
# ko files for FM Radio
insmod /system/lib/modules/Si4709_driver.ko
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/boost_freq
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/boost_lock_time
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/boost_mincpus
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/cpu_down_freq
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/cpu_down_rate
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/cpu_up_freq
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/cpu_up_rate
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/cpucore_table
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/down_differential
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/dvfs_debug
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/freq_step
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_1_1
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_0
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_1
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_3_0
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_3_1
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_4_0
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_1_1
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_2_0
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_2_1
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_3_0
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_3_1
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_4_0
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/ignore_nice_load
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/io_is_busy
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
+ chown system system /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate
+
+on boot
+ # Flash storage isn't a good entropy source, and only causes
+ # locking overhead in the kernel. Turn it off.
+ write /sys/block/mmcblk0/queue/add_random 0
+ write /sys/block/mmcblk1/queue/add_random 0
+
+ # KSM
+ write /sys/kernel/mm/ksm/deferred_timer 1
+ write /sys/kernel/mm/ksm/pages_to_scan 100
+ write /sys/kernel/mm/ksm/sleep_millisecs 500
+ write /sys/kernel/mm/ksm/run 0
+
+ # Swapping 1 page at a time is ok
+ write /proc/sys/vm/page-cluster 0
+
+ write /proc/sys/vm/swappiness 100
+
+ # increase read-ahead value to 256 kb
+ write /sys/block/mmcblk0/queue/read_ahead_kb 256
on post-fs-data
@@ -50,22 +101,3 @@ on fs
# user gps
# group system inet sdcard_rw gps
# seclabel u:r:glgps:s0
-
-on property:dev.bootcomplete=1
-# boot on default pegasusq settings (for better performance)
-# switch to more conservative settings after bootup is complete
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_1_1 500000
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_0 500000
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_1 700000
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_3_0 700000
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_3_1 900000
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_4_0 900000
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_1_1 150
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_2_0 150
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_2_1 250
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_3_0 250
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_3_1 350
- write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_4_0 450
- write /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold 90
- write /sys/devices/system/cpu/cpufreq/pegasusq/cpu_down_rate 10
- write /sys/devices/system/cpu/cpufreq/pegasusq/down_differential 3