From 108e06a2143caadd7086e7d34b4baab76ef1b5dc Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Tue, 21 May 2024 15:46:35 -0700 Subject: [PATCH] thermal: set virtualskin model cache interval to 7 seconds With previous samples being used in vt estimation, the sampling period between vt estimation calls impact vt accuracy. Currently vt model is using default cache interval of 2 seconds. This change sets the cache interval to 7 seconds explicitly to match with passive delay Bug: 341967304 Test: Check vt estimation invoke calls with frequency thermalservice dump Change-Id: Ic6a38939b2bec88a66c87517e6efa548566ea877 Signed-off-by: Sayanna Chandula --- thermal/thermal_info_config_caiman.json | 3 ++- thermal/thermal_info_config_komodo.json | 3 ++- thermal/thermal_info_config_tokay.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/thermal/thermal_info_config_caiman.json b/thermal/thermal_info_config_caiman.json index a8219eeb..deac90c4 100644 --- a/thermal/thermal_info_config_caiman.json +++ b/thermal/thermal_info_config_caiman.json @@ -230,7 +230,8 @@ "PreviousSampleCount": 3, "OffsetThresholds" : [50000, 53000], "OffsetValues" : [500, 1000], - "BackupSensor" : "VIRTUAL-SKIN-LEGACY" + "BackupSensor" : "VIRTUAL-SKIN-LEGACY", + "TimeResolution": 7000 }, { "Name": "VIRTUAL-SKIN-MODEL-UPPER-CLAMPED", diff --git a/thermal/thermal_info_config_komodo.json b/thermal/thermal_info_config_komodo.json index 70b0ecc1..334d153a 100644 --- a/thermal/thermal_info_config_komodo.json +++ b/thermal/thermal_info_config_komodo.json @@ -220,7 +220,8 @@ "PreviousSampleCount": 3, "OffsetThresholds" : [50000, 53000], "OffsetValues" : [500, 1000], - "BackupSensor" : "VIRTUAL-SKIN-LEGACY" + "BackupSensor" : "VIRTUAL-SKIN-LEGACY", + "TimeResolution": 7000 }, { "Name": "VIRTUAL-SKIN-MODEL-UPPER-CLAMPED", diff --git a/thermal/thermal_info_config_tokay.json b/thermal/thermal_info_config_tokay.json index d1a24a2f..61acc210 100644 --- a/thermal/thermal_info_config_tokay.json +++ b/thermal/thermal_info_config_tokay.json @@ -209,7 +209,8 @@ "PreviousSampleCount": 3, "OffsetThresholds" : [50000, 53000], "OffsetValues" : [500, 1000], - "BackupSensor" : "VIRTUAL-SKIN-LEGACY" + "BackupSensor" : "VIRTUAL-SKIN-LEGACY", + "TimeResolution": 7000 }, { "Name": "VIRTUAL-SKIN-MODEL-UPPER-CLAMPED",