thermal: optimize usbc throttling policy

Bug: 278035350
Test: verified by emul_temp
Change-Id: I16442ddfe8a909da05a71d313e01c3964d07fe6c
This commit is contained in:
TeYuan Wang 2023-09-26 14:42:56 -07:00
parent a39ac67a82
commit 4ee85b18c0
2 changed files with 4 additions and 21 deletions

View file

@ -623,14 +623,10 @@
"Name":"USB-MINUS-CHARGER",
"Type":"UNKNOWN",
"VirtualSensor":true,
"TriggerSensor": "usb_conn_therm",
"Formula":"WEIGHTED_AVG",
"Combination":["usb_conn_therm", "charger_therm"],
"Coefficient":[1.0, -1.0],
"HotThreshold":["NAN", "7.0", "NAN", "NAN", "NAN", "NAN", "NAN"],
"Multiplier":0.001,
"PollingDelay":0,
"PassiveDelay":7000
"Multiplier":0.001
},
{
"Name":"VIRTUAL-USB-THROTTLING",
@ -648,9 +644,8 @@
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"VrThreshold":"NAN",
"Multiplier":1,
"PollingDelay":60000,
"PollingDelay":300000,
"PassiveDelay":7000
},
{
@ -663,7 +658,6 @@
"Combination":["usb_conn_therm", "USB-MINUS-CHARGER"],
"Coefficient":[46000, 13000],
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", "2.0", "NAN"],
"VrThreshold":"NAN",
"Multiplier":1,
"SendCallback":true,
"PollingDelay":60000,

View file

@ -183,20 +183,10 @@
"Name":"USB-MINUS-CHARGER",
"Type":"UNKNOWN",
"VirtualSensor":true,
"TriggerSensor": "usb_conn_therm",
"Formula":"WEIGHTED_AVG",
"Combination":["usb_conn_therm", "charger_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",
@ -214,9 +204,8 @@
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"VrThreshold":"NAN",
"Multiplier":1,
"PollingDelay":60000,
"PollingDelay":300000,
"PassiveDelay":7000
}
],