Revert "gs101: move charger thermal HAL setup into common code"
This reverts commit 980650080a
.
Reason for revert: Since the vendor.thermal.symlinks is init early than google-module init
such as gpu cooling, the gpu cooling is not ready while creating thermal.symlinks.
Thermal-hal GPU thermal throttling will fail because there is no thermal-gpufreq-0 in thermal.symlinks.
Bug: 200615564
Test: thermal symlinks can be created in dev folder
Change-Id: Ia3b0999c7a8038f7be5e2390926ff74473c0c339
This commit is contained in:
parent
11f2c88795
commit
38d2997f6a
1 changed files with 9 additions and 0 deletions
|
@ -985,10 +985,19 @@ on property:vendor.thermal.link_ready=1
|
||||||
chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state
|
chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state
|
||||||
chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state
|
chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state
|
||||||
|
|
||||||
|
# Create thermal symlink in off charging mode
|
||||||
on charger
|
on charger
|
||||||
|
mkdir /dev/thermal 0750 system system
|
||||||
|
mkdir /dev/thermal/tz-by-name 0750 system system
|
||||||
|
mkdir /dev/thermal/cdev-by-name 0750 system system
|
||||||
|
start vendor.thermal.symlinks
|
||||||
write /proc/vendor_sched/sys_uclamp_min 0
|
write /proc/vendor_sched/sys_uclamp_min 0
|
||||||
write /proc/vendor_sched/sys_prefer_idle 0
|
write /proc/vendor_sched/sys_prefer_idle 0
|
||||||
|
|
||||||
|
# Launch thermal hal in off charging mode
|
||||||
|
on charger && property:vendor.thermal.link_ready=1
|
||||||
|
start vendor.thermal-hal-2-0
|
||||||
|
|
||||||
on property:vendor.disable.bcl.control=1
|
on property:vendor.disable.bcl.control=1
|
||||||
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0
|
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue