From c5c3e1d7203b85e8d83b963db376c1b615d6c006 Mon Sep 17 00:00:00 2001 From: George Lee Date: Wed, 31 Aug 2022 11:45:18 -0700 Subject: [PATCH] health: Remove SOC based throttling Bug: 244359848 Test: Confirm SOC based throttling removed Signed-off-by: George Lee Change-Id: I7e7b9337b12a04718dec1b4e2ed4914cb64046d3 --- health/Health.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/health/Health.cpp b/health/Health.cpp index a50cc8bb..a81e731f 100644 --- a/health/Health.cpp +++ b/health/Health.cpp @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -55,7 +54,6 @@ using aidl::android::hardware::health::charger::ChargerCallback; using aidl::android::hardware::health::charger::ChargerModeMain; using hardware::google::pixel::health::BatteryDefender; using hardware::google::pixel::health::BatteryMetricsLogger; -using hardware::google::pixel::health::BatteryThermalControl; using hardware::google::pixel::health::DeviceHealth; using hardware::google::pixel::health::LowBatteryShutdownMetrics; using hardware::google::pixel::health::ChargerDetect; @@ -70,8 +68,6 @@ constexpr char kVoltageAvg[] {FG_DIR "/voltage_now"}; static BatteryDefender battDefender(WLC_DIR "/present", "/sys/devices/platform/google,charger/charge_start_level", "/sys/devices/platform/google,charger/charge_stop_level"); -static BatteryThermalControl battThermalControl( - "/dev/thermal/tz-by-name/soc/mode"); static BatteryMetricsLogger battMetricsLogger(kBatteryResistance, kBatteryOCV); static LowBatteryShutdownMetrics shutdownMetrics(kVoltageAvg); static DeviceHealth deviceHealth; @@ -145,7 +141,6 @@ void private_healthd_board_init(struct healthd_config *hc) { int private_healthd_board_battery_update(HealthInfo *health_info) { deviceHealth.update(health_info); - battThermalControl.updateThermalState(*health_info); battMetricsLogger.logBatteryProperties(*health_info); shutdownMetrics.logShutdownVoltage(*health_info); // Allow BatteryDefender to override online properties