thermal: optimize thermal config

1. correct the delay settings
2. Remove the redundant binded cdev settings

Bug: 258393022
Test: emul_temp skin_therm and check the log
Change-Id: I9a60a1b0800b3a24e6ce86f6fa6db82ea14dad9a
This commit is contained in:
TeYuan Wang 2022-12-15 13:04:28 +08:00
parent 033bbce33c
commit 14e2d00e34
2 changed files with 17 additions and 31 deletions

View file

@ -17,7 +17,9 @@
"Type":"UNKNOWN",
"HotThreshold":["NAN", 32, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath":"/dev/thermal/tz-by-name/skin_therm/tz_temp",
"Multiplier":0.001
"Multiplier":0.001,
"PollingDelay":300000,
"PassiveDelay":7000
},
{
"Name":"usb_pwr_therm",
@ -31,7 +33,7 @@
"HotThreshold":["NAN", 40.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/tz_temp",
"Multiplier":0.001,
"PollingDelay":60000,
"PollingDelay":300000,
"PassiveDelay":7000
},
{
@ -284,20 +286,11 @@
"Formula":"WEIGHTED_AVG",
"Combination":["usb_pwr_therm2", "usb_pwr_therm"],
"Coefficient":[1.0, -1.0],
"HotThreshold":["NAN", "7.0", "NAN", "NAN", "NAN", "NAN", "NAN"],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
}
],
"Multiplier":0.001,
"PollingDelay":0,
"PassiveDelay":7000
"Multiplier":0.001
},
{
"Name":"VIRTUAL-USB-THROTTLING",
"Type":"USB_PORT",
"Type":"UNKNOWN",
"Hidden":true,
"VirtualSensor":true,
"Formula":"COUNT_THRESHOLD",
@ -312,7 +305,7 @@
}
],
"Multiplier":1,
"PollingDelay":60000,
"PollingDelay":300000,
"PassiveDelay":7000
}
],

View file

@ -23,7 +23,9 @@
"Type":"UNKNOWN",
"HotThreshold":["NAN", 32, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath":"/dev/thermal/tz-by-name/skin_therm/tz_temp",
"Multiplier":0.001
"Multiplier":0.001,
"PollingDelay":300000,
"PassiveDelay":7000
},
{
"Name":"usb_pwr_therm",
@ -37,7 +39,7 @@
"HotThreshold":["NAN", 40.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
"TempPath":"/dev/thermal/tz-by-name/usb_pwr_therm2/tz_temp",
"Multiplier":0.001,
"PollingDelay":60000,
"PollingDelay":300000,
"PassiveDelay":7000
},
{
@ -250,7 +252,7 @@
"HotThreshold":["NAN", 39.0, 43.0, 45.0, 46.5, 52.0, 60.0],
"HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9],
"Multiplier":0.001,
"PollingDelay":60000,
"PollingDelay":300000,
"PassiveDelay":7000,
"SendCallback":true,
"BindedCdevInfo": [
@ -287,7 +289,7 @@
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 54.0, "NAN"],
"HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0],
"Multiplier":0.001,
"PollingDelay":60000,
"PollingDelay":300000,
"PassiveDelay":7000,
"SendCallback":true
},
@ -468,20 +470,11 @@
"Formula":"WEIGHTED_AVG",
"Combination":["usb_pwr_therm2", "usb_pwr_therm"],
"Coefficient":[1.0, -1.0],
"HotThreshold":["NAN", "7.0", "NAN", "NAN", "NAN", "NAN", "NAN"],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 0, 0, 0]
}
],
"Multiplier":0.001,
"PollingDelay":0,
"PassiveDelay":7000
"Multiplier":0.001
},
{
"Name":"VIRTUAL-USB-THROTTLING",
"Type":"USB_PORT",
"Type":"UNKNOWN",
"Hidden":true,
"VirtualSensor":true,
"Formula":"COUNT_THRESHOLD",
@ -496,7 +489,7 @@
}
],
"Multiplier":1,
"PollingDelay":60000,
"PollingDelay":300000,
"PassiveDelay":7000
},
{
@ -510,7 +503,7 @@
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", "2.0", "NAN"],
"Multiplier":1,
"SendCallback":true,
"PollingDelay":60000,
"PollingDelay":300000,
"PassiveDelay":7000
},
{