thermal: report throttling to Android thermalservice

Add "report" actions to throttling rules of algorithm type
"monitor", or add monitor rule covering throttling range, to send
throttling events to Android thermalservice.

Bug: 30982366
Test: manual on taimen (with artificially low thresholds)
Change-Id: Ib1bf8a148ef2ec654e7a238868d349859f197cb4
This commit is contained in:
Todd Poynor
2017-08-28 18:04:20 -07:00
parent 2a53a3a292
commit 05abc505c6
2 changed files with 26 additions and 8 deletions

View File

@@ -13,8 +13,8 @@ sensor bd_therm2
sampling 1000
thresholds 50000
thresholds_clr 46000
actions cluster0+cluster1+gpu+battery
action_info 883200+902400+342000000+3
actions cluster0+cluster1+gpu+battery+report
action_info 883200+902400+342000000+3+1
[SKIN_SHUTDOWN]
algo_type monitor
@@ -31,5 +31,5 @@ sensor bd_therm
sampling 1000
thresholds 62000
thresholds_clr 58000
actions cluster0+cluster1+gpu
action_info 883200+902400+342000000
actions cluster0+cluster1+gpu+report
action_info 883200+902400+342000000+1

View File

@@ -54,8 +54,8 @@ sampling 2000
sensor bd_therm2
thresholds 48000 50000 52000
thresholds_clr 47000 49000 51000
actions cluster0+cluster1+gpu cluster0+cluster1+gpu cluster0+cluster1+gpu
action_info 1094400+1190400+414000000 883200+902400+342000000 300000+300000+257000000
actions cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report
action_info 1094400+1190400+414000000+1 883200+902400+342000000+1 300000+300000+257000000+1
[BATTERY-MONITOR2]
algo_type monitor
@@ -75,6 +75,15 @@ thresholds_clr 53000
actions shutdown
action_info 1
[THROTTLING-NOTIFY2]
algo_type monitor
sampling 2000
sensor bd_therm2
thresholds 38000
thresholds_clr 37000
actions report
action_info 1
[SKIN-MID-FLOOR]
algo_type ss
sampling 2000
@@ -121,8 +130,8 @@ sampling 2000
sensor bd_therm
thresholds 58000 60000 64000
thresholds_clr 57000 59000 63000
actions cluster0+cluster1+gpu cluster0+cluster1+gpu cluster0+cluster1+gpu
action_info 1094400+1190400+414000000 883200+902400+342000000 300000+300000+257000000
actions cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report
action_info 1094400+1190400+414000000+1 883200+902400+342000000+1 300000+300000+257000000+1
[SKIN-SHUTDOWN]
algo_type monitor
@@ -132,3 +141,12 @@ thresholds 66000
thresholds_clr 65000
actions shutdown
action_info 1
[THROTTLING-NOTIFY]
algo_type monitor
sampling 2000
sensor bd_therm
thresholds 49000
thresholds_clr 48000
actions report
action_info 1