sm6225-common: Drop most motorola modifications from post_boot script

These are either irrelevant or just used for debugging.

Change-Id: I6d434a4bbd69a362dd72e8b5a719c7fe51f99668
This commit is contained in:
Michael Bestas 2024-07-05 14:09:19 +03:00
parent f49fb47274
commit 7bbdd005ab
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -953,7 +953,7 @@ function configure_memory_parameters() {
ProductName=`getprop ro.board.platform` ProductName=`getprop ro.board.platform`
low_ram=`getprop ro.config.low_ram` low_ram=`getprop ro.config.low_ram`
if [ "$ProductName" == "msmnile" ] || [ "$ProductName" == "kona" ] || [ "$ProductName" == "sdmshrike_au" ] || [ "$ProductName" == "lito" ] ; then if [ "$ProductName" == "msmnile" ] || [ "$ProductName" == "kona" ] || [ "$ProductName" == "sdmshrike_au" ]; then
# Enable ZRAM # Enable ZRAM
configure_zram_parameters configure_zram_parameters
configure_read_ahead_kb_values configure_read_ahead_kb_values
@ -1051,21 +1051,13 @@ else
fi fi
if [[ "$ProductName" == "bengal"* ]]; then if [[ "$ProductName" == "bengal"* ]]; then
DeviceName=`getprop ro.product.name` #Set PPR nomap parameters for bengal targets
#Do not set PPR parameters for the followimg targets: echo 1 > /sys/module/process_reclaim/parameters/enable_process_reclaim
#Guam NA echo 50 > /sys/module/process_reclaim/parameters/pressure_min
case "$DeviceName" in echo 70 > /sys/module/process_reclaim/parameters/pressure_max
"guamna"*) ;; echo 30 > /sys/module/process_reclaim/parameters/swap_opt_eff
*) echo 0 > /sys/module/process_reclaim/parameters/per_swap_size
#Set PPR nomap parameters for all other bengal targets echo 7680 > /sys/module/process_reclaim/parameters/tsk_nomap_swap_sz
echo 1 > /sys/module/process_reclaim/parameters/enable_process_reclaim
echo 50 > /sys/module/process_reclaim/parameters/pressure_min
echo 70 > /sys/module/process_reclaim/parameters/pressure_max
echo 30 > /sys/module/process_reclaim/parameters/swap_opt_eff
echo 0 > /sys/module/process_reclaim/parameters/per_swap_size
echo 7680 > /sys/module/process_reclaim/parameters/tsk_nomap_swap_sz
;;
esac
fi fi
# Set allocstall_threshold to 0 for all targets. # Set allocstall_threshold to 0 for all targets.
@ -3869,13 +3861,12 @@ case "$target" in
case "$soc_id" in case "$soc_id" in
"400" | "440" | "476" ) "400" | "440" | "476" )
# Core control parameters on silver # Core control parameters on silver
echo 0 0 0 0 0 0 > /sys/devices/system/cpu/cpu0/core_ctl/not_preferred echo 0 0 0 0 1 1 > /sys/devices/system/cpu/cpu0/core_ctl/not_preferred
echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus
echo 60 > /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres echo 60 > /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres
echo 40 > /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres echo 40 > /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres
echo 8 > /sys/devices/system/cpu/cpu0/core_ctl/task_thres echo 8 > /sys/devices/system/cpu/cpu0/core_ctl/task_thres
echo 100 > /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms echo 100 > /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms
echo 0 > /sys/devices/system/cpu/cpu0/core_ctl/enable
# Disable Core control on gold, prime # Disable Core control on gold, prime
echo 0 > /sys/devices/system/cpu/cpu6/core_ctl/enable echo 0 > /sys/devices/system/cpu/cpu6/core_ctl/enable
@ -4170,12 +4161,6 @@ case "$target" in
# device/target specific folder # device/target specific folder
setprop vendor.dcvs.prop 1 setprop vendor.dcvs.prop 1
# moto add by yangbq2, set wsf value as 1
# Disable wsf for all targets beacause we are using efk.
# wsf Range : 1..1000 So set to bare minimum value 1.
echo 1 > /proc/sys/vm/watermark_scale_factor
# moto end
# cpuset parameters # cpuset parameters
echo 0-5 > /dev/cpuset/background/cpus echo 0-5 > /dev/cpuset/background/cpus
echo 0-5 > /dev/cpuset/system-background/cpus echo 0-5 > /dev/cpuset/system-background/cpus
@ -4185,14 +4170,6 @@ case "$target" in
# Turn off sleep modes # Turn off sleep modes
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
# Log kernel wake-up source
echo 1 > /sys/module/msm_show_resume_irq/parameters/debug_mask
# Log kernel enabled clock before suspend
if [ -f /sys/kernel/debug/clk/debug_suspend ]; then
echo 1 > /sys/kernel/debug/clk/debug_suspend
fi
;; ;;
esac esac
esac esac
@ -4313,9 +4290,6 @@ case "$target" in
# Turn on sleep modes # Turn on sleep modes
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
# Log kernel wake-up source
echo 1 > /sys/module/msm_show_resume_irq/parameters/debug_mask
;; ;;
esac esac
@ -4489,9 +4463,6 @@ case "$target" in
# Disable low power modes. Enable it after LPM stable # Disable low power modes. Enable it after LPM stable
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
# Log kernel wake-up source
echo 1 > /sys/module/msm_show_resume_irq/parameters/debug_mask
;; ;;
esac esac