Snap for 8779833 from 523f22ef38
to tm-qpr1-release
Change-Id: Iee43424436f5077369d9d43bce1a465e3c99f2e2
This commit is contained in:
commit
3d0e26def3
5 changed files with 16 additions and 7 deletions
|
@ -59,7 +59,7 @@ const struct MitigationConfig::Config cfg = {
|
||||||
"main", "sub", "CPU2", "CPU1", "GPU", "TPU", "CAM", "DISP", "NPU",
|
"main", "sub", "CPU2", "CPU1", "GPU", "TPU", "CAM", "DISP", "NPU",
|
||||||
"voltage_now", "current_now",
|
"voltage_now", "current_now",
|
||||||
},
|
},
|
||||||
.LogFilePath = "/data/vendor/mitigation/lastmeal.txt",
|
.LogFilePath = "/data/vendor/mitigation/thismeal.txt",
|
||||||
};
|
};
|
||||||
|
|
||||||
int main(int /*argc*/, char ** /*argv*/) {
|
int main(int /*argc*/, char ** /*argv*/) {
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
on property:sys.boot_completed=1 && property:ro.boot.bootreason=reboot,ocp
|
||||||
|
copy data/vendor/mitigation/thismeal.txt data/vendor/mitigation/lastmeal.txt
|
||||||
|
|
||||||
|
on property:sys.boot_completed=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,if
|
||||||
|
copy data/vendor/mitigation/thismeal.txt data/vendor/mitigation/lastmeal.txt
|
||||||
|
|
||||||
|
on property:sys.boot_completed=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,main
|
||||||
|
copy data/vendor/mitigation/thismeal.txt data/vendor/mitigation/lastmeal.txt
|
||||||
|
|
||||||
|
on property:sys.boot_completed=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,sub
|
||||||
|
copy data/vendor/mitigation/thismeal.txt data/vendor/mitigation/lastmeal.txt
|
||||||
|
|
||||||
on property:vendor.thermal.link_ready=1
|
on property:vendor.thermal.link_ready=1
|
||||||
mkdir /data/vendor/mitigation 0755 system system
|
mkdir /data/vendor/mitigation 0755 system system
|
||||||
chown system system /data/vendor/mitigation
|
chown system system /data/vendor/mitigation
|
||||||
|
|
|
@ -725,8 +725,6 @@ on property:sys.boot_completed=1
|
||||||
|
|
||||||
# Enable UFS powersaving
|
# Enable UFS powersaving
|
||||||
write /dev/sys/block/bootdevice/clkgate_enable 1
|
write /dev/sys/block/bootdevice/clkgate_enable 1
|
||||||
# Disable dock-defend in Off Mode Charger
|
|
||||||
write /sys/devices/platform/google,charger/dd_state -1
|
|
||||||
|
|
||||||
# Reset DDR frequency
|
# Reset DDR frequency
|
||||||
write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/cancel_boot_freq 1
|
write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/cancel_boot_freq 1
|
||||||
|
@ -1017,6 +1015,8 @@ on property:persist.vendor.softmaxfreq.cl2=*
|
||||||
on property:ro.boot.mode=charger && property:init.svc.vendor.charger=running
|
on property:ro.boot.mode=charger && property:init.svc.vendor.charger=running
|
||||||
# Enable UFS powersaving in Off Mode Charger
|
# Enable UFS powersaving in Off Mode Charger
|
||||||
write /dev/sys/block/bootdevice/clkgate_enable 1
|
write /dev/sys/block/bootdevice/clkgate_enable 1
|
||||||
|
# Disable dock-defend in Off Mode Charger
|
||||||
|
write /sys/devices/platform/google,charger/dd_state -1
|
||||||
|
|
||||||
# Cpuset experiment
|
# Cpuset experiment
|
||||||
on property:persist.device_config.vendor_system_native.top-app_cpuset=*
|
on property:persist.device_config.vendor_system_native.top-app_cpuset=*
|
||||||
|
|
|
@ -119,6 +119,7 @@
|
||||||
|
|
||||||
# IPC OEM
|
# IPC OEM
|
||||||
/dev/oem_ipc* 0660 radio radio
|
/dev/oem_ipc* 0660 radio radio
|
||||||
|
/dev/oem_test 0660 radio radio
|
||||||
|
|
||||||
# interactive governor parameters
|
# interactive governor parameters
|
||||||
/sys/devices/system/cpu/cpu* cpufreq/interactive/timer_rate 0660 system system
|
/sys/devices/system/cpu/cpu* cpufreq/interactive/timer_rate 0660 system system
|
||||||
|
|
|
@ -43,7 +43,3 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
||||||
|
|
||||||
# ZramWriteback
|
# ZramWriteback
|
||||||
-include hardware/google/pixel/mm/device_gki.mk
|
-include hardware/google/pixel/mm/device_gki.mk
|
||||||
|
|
||||||
# Set thermal warm reset
|
|
||||||
PRODUCT_PRODUCT_PROPERTIES += \
|
|
||||||
ro.thermal_warmreset = true
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue