aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormosimchah <mosimchah@gmail.com>2017-08-15 15:49:08 -0400
committermosimchah <mosimchah@gmail.com>2017-08-15 16:26:48 -0400
commit1293f88a127bba828d7d5d87c70d754fc09afeb1 (patch)
treedf74678ef95d4d3dc3c78979831f07dc8d0fe257
parent66f5a8e982af2838e1485a56b1669eb2f906e53a (diff)
msm8226-common: remove stormysea mods
Change-Id: Id5947f6781124b017db5a9209730d6ea77004387
-rw-r--r--rootdir/init.qcom.rc43
1 files changed, 7 insertions, 36 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index dd65c14..ddafee3 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -1,4 +1,4 @@
- # Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
+# Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -24,7 +24,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-
+
import init.qcom.usb.rc
import init.wcnss.rc
@@ -73,7 +73,6 @@ on early-boot
on boot
# bring CPUs online
write /sys/module/msm_thermal/core_control/enabled 0
- write /sys/devices/system/cpu/cpu0/online 1
write /sys/devices/system/cpu/cpu1/online 1
write /sys/devices/system/cpu/cpu2/online 1
write /sys/devices/system/cpu/cpu3/online 1
@@ -327,13 +326,6 @@ on post-fs-data
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- #Performance
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "performance"
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "performance"
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "performance"
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "performance"
- write /sys/block/mmcblk0/queue/scheduler "row"
-
# Allow Torch app use torch
chown system system /sys/class/leds/led:flash_torch/brightness
chmod 0666 /sys/class/leds/led:flash_torch/brightness
@@ -562,18 +554,16 @@ on charger
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1
write /sys/module/msm_show_resume_irq/parameters/debug_mask 1
- write /sys/devices/system/cpu/cpu1/online 1
- write /sys/devices/system/cpu/cpu2/online 1
- write /sys/devices/system/cpu/cpu3/online 1
+ write /sys/devices/system/cpu/cpu1/online 0
+ write /sys/devices/system/cpu/cpu2/online 0
+ write /sys/devices/system/cpu/cpu3/online 0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- chown root system /sys/devices/system/cpu/cpu0/online
chown root system /sys/devices/system/cpu/cpu1/online
chown root system /sys/devices/system/cpu/cpu2/online
chown root system /sys/devices/system/cpu/cpu3/online
- chmod 664 /sys/devices/system/cpu/cpu0/online
chmod 664 /sys/devices/system/cpu/cpu1/online
chmod 664 /sys/devices/system/cpu/cpu2/online
chmod 664 /sys/devices/system/cpu/cpu3/online
@@ -583,7 +573,6 @@ on charger
write /sys/module/lpm_levels/enable_low_power/l2 3
write /sys/class/leds/lcd-backlight/brightness 255
write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 0
- write /sys/devices/system/cpu/cpu0/online 1
write /sys/devices/system/cpu/cpu1/online 1
write /sys/devices/system/cpu/cpu2/online 1
write /sys/devices/system/cpu/cpu3/online 1
@@ -618,33 +607,15 @@ on property:sys.boot_completed=1
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000
- chown root system /sys/devices/system/cpu/cpu0/online
chown root system /sys/devices/system/cpu/cpu1/online
chown root system /sys/devices/system/cpu/cpu2/online
chown root system /sys/devices/system/cpu/cpu3/online
- chmod 0664 /sys/devices/system/cpu/cpu0/online
chmod 0664 /sys/devices/system/cpu/cpu1/online
chmod 0664 /sys/devices/system/cpu/cpu2/online
chmod 0664 /sys/devices/system/cpu/cpu3/online
+ start mpdecision
-# StormySea kernel changes
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "zzmoove"
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "zzmoove"
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "zzmoove"
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "zzmoove"
- stop mpdecision
- write /sys/kernel/zen_decision/enabled 0
- write /sys/module/intelli_plug/parameters/intelli_plug_active 1
- write /sys/module/intelli_plug/parameters/touch_boost_active 1
- write /sys/devices/system/cpu/sched_mc_power_savings 0
- write /sys/module/cpu_boost/parameters/boost_ms 0
- write /sys/module/cpu_boost/parameters/sync_threshold 0
- write /sys/module/cpu_boost/parameters/input_boost_ms 0
- write /sys/module/intelli_plug/parameters/nr_run_profile_sel 1
- write /sys/module/simple_gpu_algorithm/parameters/simple_gpu_activate 1
- write /sys/module/simple_gpu_algorithm/parameters/simple_ramp_threshold 7000
- write /sys/module/simple_gpu_algorithm/parameters/simple_laziness 2
- write /sys/module/intelli_plug/parameters/cpu_nr_run_threshold 1
+# kernel changes
write /proc/sys/vm/dirty_background_ratio 85
write /proc/sys/vm/dirty_ratio 95
write /proc/sys/vm/dirty_writeback_centisecs 900