health: Remove SOC based throttling
Bug: 244359848 Bug: 253059301 Test: Confirm SOC based throttling removed Signed-off-by: George Lee <geolee@google.com> Change-Id: I05d6d3e8d37ef5ee1d27275a433177dc29b07b1a
This commit is contained in:
parent
d44db54ce4
commit
6500ff0db7
1 changed files with 0 additions and 5 deletions
|
@ -28,7 +28,6 @@
|
||||||
#include <health-impl/ChargerUtils.h>
|
#include <health-impl/ChargerUtils.h>
|
||||||
#include <pixelhealth/BatteryDefender.h>
|
#include <pixelhealth/BatteryDefender.h>
|
||||||
#include <pixelhealth/BatteryMetricsLogger.h>
|
#include <pixelhealth/BatteryMetricsLogger.h>
|
||||||
#include <pixelhealth/BatteryThermalControl.h>
|
|
||||||
#include <pixelhealth/ChargerDetect.h>
|
#include <pixelhealth/ChargerDetect.h>
|
||||||
#include <pixelhealth/DeviceHealth.h>
|
#include <pixelhealth/DeviceHealth.h>
|
||||||
#include <pixelhealth/LowBatteryShutdownMetrics.h>
|
#include <pixelhealth/LowBatteryShutdownMetrics.h>
|
||||||
|
@ -55,7 +54,6 @@ using aidl::android::hardware::health::charger::ChargerCallback;
|
||||||
using aidl::android::hardware::health::charger::ChargerModeMain;
|
using aidl::android::hardware::health::charger::ChargerModeMain;
|
||||||
using hardware::google::pixel::health::BatteryDefender;
|
using hardware::google::pixel::health::BatteryDefender;
|
||||||
using hardware::google::pixel::health::BatteryMetricsLogger;
|
using hardware::google::pixel::health::BatteryMetricsLogger;
|
||||||
using hardware::google::pixel::health::BatteryThermalControl;
|
|
||||||
using hardware::google::pixel::health::DeviceHealth;
|
using hardware::google::pixel::health::DeviceHealth;
|
||||||
using hardware::google::pixel::health::LowBatteryShutdownMetrics;
|
using hardware::google::pixel::health::LowBatteryShutdownMetrics;
|
||||||
using hardware::google::pixel::health::ChargerDetect;
|
using hardware::google::pixel::health::ChargerDetect;
|
||||||
|
@ -70,8 +68,6 @@ constexpr char kVoltageAvg[] {FG_DIR "/voltage_now"};
|
||||||
static BatteryDefender battDefender(WLC_DIR "/present",
|
static BatteryDefender battDefender(WLC_DIR "/present",
|
||||||
"/sys/devices/platform/google,charger/charge_start_level",
|
"/sys/devices/platform/google,charger/charge_start_level",
|
||||||
"/sys/devices/platform/google,charger/charge_stop_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 BatteryMetricsLogger battMetricsLogger(kBatteryResistance, kBatteryOCV);
|
||||||
static LowBatteryShutdownMetrics shutdownMetrics(kVoltageAvg);
|
static LowBatteryShutdownMetrics shutdownMetrics(kVoltageAvg);
|
||||||
static DeviceHealth deviceHealth;
|
static DeviceHealth deviceHealth;
|
||||||
|
@ -146,7 +142,6 @@ void private_healthd_board_init(struct healthd_config *hc) {
|
||||||
|
|
||||||
int private_healthd_board_battery_update(HealthInfo *health_info) {
|
int private_healthd_board_battery_update(HealthInfo *health_info) {
|
||||||
deviceHealth.update(health_info);
|
deviceHealth.update(health_info);
|
||||||
battThermalControl.updateThermalState(*health_info);
|
|
||||||
battMetricsLogger.logBatteryProperties(*health_info);
|
battMetricsLogger.logBatteryProperties(*health_info);
|
||||||
shutdownMetrics.logShutdownVoltage(*health_info);
|
shutdownMetrics.logShutdownVoltage(*health_info);
|
||||||
// Allow BatteryDefender to override online properties
|
// Allow BatteryDefender to override online properties
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue