sanders: init.qcom.rc: add eas changes
This commit is contained in:
@@ -68,6 +68,13 @@ on init
|
||||
chown root system /sys/fs/cgroup/memory/bg/tasks
|
||||
chmod 0660 /sys/fs/cgroup/memory/bg/tasks
|
||||
|
||||
# set default schedTune value for foreground/top-app (only affects EAS)
|
||||
write /dev/stune/foreground/schedtune.prefer_idle 1
|
||||
write /dev/stune/top-app/schedtune.prefer_idle 1
|
||||
write /dev/stune/top-app/schedtune.boost 10
|
||||
write /dev/stune/rt/schedtune.boost 0
|
||||
write /dev/stune/rt/schedtune.prefer_idle 1
|
||||
|
||||
on early-boot
|
||||
# set RLIMIT_MEMLOCK to 64MB
|
||||
setrlimit 8 67108864 67108864
|
||||
@@ -261,8 +268,7 @@ on boot
|
||||
chmod 0664 /sys/class/graphics/fb0/msm_cmd_autorefresh_en
|
||||
|
||||
write /dev/cpuset/top-app/cpus 0-7
|
||||
write /dev/cpuset/top-app/boost/cpus 4-7
|
||||
write /dev/cpuset/foreground/cpus 0-6
|
||||
write /dev/cpuset/foreground/cpus 0-3,6-7
|
||||
write /dev/cpuset/background/cpus 0-1
|
||||
write /dev/cpuset/system-background/cpus 0-3
|
||||
|
||||
@@ -568,11 +574,11 @@ service adsprpcd /vendor/bin/adsprpcd
|
||||
user media
|
||||
group media
|
||||
|
||||
service energy-awareness /vendor/bin/energy-awareness
|
||||
class main
|
||||
user root
|
||||
group system
|
||||
oneshot
|
||||
#service energy-awareness /vendor/bin/energy-awareness
|
||||
# class main
|
||||
# user root
|
||||
# group system
|
||||
# oneshot
|
||||
|
||||
service irsc_util /vendor/bin/irsc_util "/vendor/etc/sec_config"
|
||||
class core
|
||||
@@ -769,14 +775,14 @@ service wlan_logging /system/bin/cnss_diag -q -f
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service cnss-daemon /vendor/bin/cnss-daemon -n -l
|
||||
class late_start
|
||||
user system
|
||||
group system inet net_admin wifi
|
||||
capabilities NET_ADMIN
|
||||
|
||||
on property:sys.shutdown.requested=*
|
||||
stop cnss-daemon
|
||||
#service cnss-daemon /vendor/bin/cnss-daemon -n -l
|
||||
# class late_start
|
||||
# user system
|
||||
# group system inet net_admin wifi
|
||||
# capabilities NET_ADMIN
|
||||
#
|
||||
#on property:sys.shutdown.requested=*
|
||||
# stop cnss-daemon
|
||||
|
||||
service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
|
||||
class late_start
|
||||
@@ -818,6 +824,7 @@ service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqb
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
|
||||
service fm_dl /vendor/bin/init.qti.fm.sh
|
||||
class late_start
|
||||
@@ -906,7 +913,7 @@ on property:sys.boot_completed=1
|
||||
write /sys/class/devfreq/soc:qcom,cpubw/min_freq 1611
|
||||
write /sys/class/devfreq/soc:qcom,gpubw/bw_hwmon/io_percent 40
|
||||
|
||||
# disable thermal & BCL core_control to update interactive gov settings
|
||||
# disable thermal & BCL core_control to update schedutil gov settings
|
||||
write /sys/module/msm_thermal/core_control/enabled 0
|
||||
write /sys/devices/soc/soc:qcom,bcl/mode "disable"
|
||||
write /sys/devices/soc/soc:qcom,bcl/hotplug_mask 0
|
||||
@@ -915,16 +922,18 @@ on property:sys.boot_completed=1
|
||||
|
||||
# governor settings
|
||||
write /sys/devices/system/cpu/cpu0/online 1
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay "19000 1401600:39000"
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 85
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/timer_rate 20000
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 1401600
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 0
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/target_loads "85 1401600:80"
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 39000
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "schedutil"
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 652800
|
||||
|
||||
write /sys/devices/system/cpu/cpufreq/schedutil/up_rate_limit_us 500
|
||||
write /sys/devices/system/cpu/cpufreq/schedutil/down_rate_limit_us 20000
|
||||
write /sys/devices/system/cpu/cpufreq/schedutil/iowait_boost_enable 0
|
||||
|
||||
# Enable input boost configuration
|
||||
write /sys/module/cpu_boost/parameters/input_boost_freq "0:1036800"
|
||||
write /sys/module/cpu_boost/parameters/dynamic_stune_boost 5
|
||||
write /sys/module/cpu_boost/parameters/input_boost_ms 350
|
||||
|
||||
# re-enable thermal & BCL core_control now
|
||||
write /sys/module/msm_thermal/core_control/enabled 1
|
||||
write /sys/devices/soc/soc:qcom,bcl/mode "disable"
|
||||
@@ -955,6 +964,11 @@ on property:sys.boot_completed=1
|
||||
write /proc/sys/kernel/sched_freq_inc_notify 200000
|
||||
write /proc/sys/kernel/sched_freq_dec_notify 200000
|
||||
|
||||
# set default schedTune value for foreground/top-app (only affects EAS)
|
||||
write /dev/stune/foreground/schedtune.prefer_idle 1
|
||||
write /dev/stune/top-app/schedtune.prefer_idle 1
|
||||
write /dev/stune/top-app/schedtune.boost 1
|
||||
|
||||
# Log kernel wake-up source
|
||||
write /sys/module/msm_show_resume_irq/parameters/debug_mask 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user