mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
Revert "klte-common: HAXX: "Fix" race condition in init"
* It seems that this old "fix" for G900V RIL actually makes the Q "opengapps issue", normally only evident in encrypted legacy devices with secure startup, more pronounced. In such devices, your ability to progress beyond the boot animation to an actual homescreen after entering an unlock PIN is completely at chance, but with much better chances after an update (dexopting, maybe?). Only with this HAXX in place, the issue happens with unencrypted devices. * A nice side effect will be that all klte* devices will boot much faster. * The root cause of this is some kind of timeout, but the logs are seemingly worthless. This reverts commit 31509201c1dc83cb4db5aa759f042459e87878b4. Change-Id: Iaf2a19a3ab7f8f8cf2f0add1bd6e3b87d06310a7
This commit is contained in:
parent
3c9767996b
commit
a7bb19fe64
1 changed files with 26 additions and 34 deletions
|
@ -36,45 +36,37 @@ on init
|
|||
# disable thermal core_control to update governor settings
|
||||
write /sys/module/msm_thermal/core_control/enabled 0
|
||||
|
||||
# Switch to ondemand gonvernor
|
||||
write /sys/devices/system/cpu/cpu0/online 1
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1
|
||||
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 11
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "ondemand"
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 85
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor 2
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/down_differential 10
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core 70
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core 10
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq 787200
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq 300000
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/step_up_early_hispeed 998400
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/step_up_interim_hispeed 1094400
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load 80
|
||||
# Switch to interactive gonvernor and configure it
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
|
||||
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
|
||||
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor interactive
|
||||
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor interactive
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay "25000 109440:50000"
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 90
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 1094400
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 0
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/target_loads "70 998400:80 1094400:90"
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 50000
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/timer_rate 30000
|
||||
write /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 50000
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 787200
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_early_factor 1
|
||||
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_interim_factor 1
|
||||
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 787200
|
||||
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 787200
|
||||
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 787200
|
||||
|
||||
# enable thermal core_control now
|
||||
write /sys/module/msm_thermal/core_control/enabled 1
|
||||
|
||||
# bring all CPUs online
|
||||
# Bring all CPUs online, and set node permissions
|
||||
write /sys/devices/system/cpu/cpu1/online 1
|
||||
write /sys/devices/system/cpu/cpu2/online 1
|
||||
write /sys/devices/system/cpu/cpu3/online 1
|
||||
chmod 664 /sys/devices/system/cpu/cpu1/online
|
||||
chmod 664 /sys/devices/system/cpu/cpu2/online
|
||||
chmod 664 /sys/devices/system/cpu/cpu3/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
|
||||
|
||||
# enable thermal core_control now
|
||||
write /sys/module/msm_thermal/core_control/enabled 1
|
||||
|
||||
# Enable low power modes
|
||||
write /sys/module/lpm_levels/parameters/sleep_disabled 0
|
||||
|
|
Loading…
Reference in a new issue