Home
last modified time | relevance | path

Searched refs:max_state (Results 1 – 6 of 6) sorted by relevance

/hardware/google/pixel/thermal/utils/
Dthermal_throttling.cpp472 binded_cdev_info_pair.first) == cdev_info.max_state)) { in allocatePowerToCdev()
474 << " has been already at max state " << cdev_info.max_state; in allocatePowerToCdev()
656 const auto max_state = cooling_device_info_map.at(binded_cdev_info_pair.first).max_state; in throttlingReleaseUpdate() local
664 release_step = binded_cdev_info_pair.second.throttling_with_power_link ? max_state : 0; in throttlingReleaseUpdate()
696 if (std::abs(release_step) < static_cast<int>(max_state)) { in throttlingReleaseUpdate()
705 if (release_step < static_cast<int>(max_state)) { in throttlingReleaseUpdate()
714 if (release_step < static_cast<int>(max_state)) { in throttlingReleaseUpdate()
718 if (std::abs(release_step) < static_cast<int>(max_state)) { in throttlingReleaseUpdate()
724 release_step = is_over_budget ? 0 : max_state; in throttlingReleaseUpdate()
871 bool ThermalThrottling::getCdevMaxRequest(std::string_view cdev_name, int *max_state) { in getCdevMaxRequest() argument
[all …]
Dthermal_stats_helper.cpp135 const auto &max_state = in initializeSensorCdevRequestStats() local
136 cooling_device_info_map_.at(binded_cdev_info_pair.first).max_state; in initializeSensorCdevRequestStats()
142 if (max_state >= kMaxStatsResidencyCount) { in initializeSensorCdevRequestStats()
146 const auto starting_state = max_state - kMaxStatsResidencyCount + 1; in initializeSensorCdevRequestStats()
155 const auto default_threshold_time_in_state_size = max_state + 1; in initializeSensorCdevRequestStats()
168 if (threshold_list.thresholds.back() >= max_state) { in initializeSensorCdevRequestStats()
171 << threshold_list.thresholds.back() << " >= " << max_state; in initializeSensorCdevRequestStats()
Dthermal_throttling.h93 bool getCdevMaxRequest(std::string_view cdev_name, int *max_state);
Dthermal_info.h238 int max_state; member
/hardware/google/pixel/thermal/
Dthermal-helper.cpp129 if (cdev_ceiling > cdev_info.max_state) { in maxCoolingRequestCheck()
132 << " is higher than max state:" << cdev_info.max_state; in maxCoolingRequestCheck()
134 cdev_ceiling = cdev_info.max_state; in maxCoolingRequestCheck()
595 int max_state; in updateCoolingDevices() local
598 if (thermal_throttling_.getCdevMaxRequest(target_cdev, &max_state)) { in updateCoolingDevices()
599 if (cooling_devices_.writeCdevFile(target_cdev, std::to_string(max_state))) { in updateCoolingDevices()
600 ATRACE_INT(target_cdev.c_str(), max_state); in updateCoolingDevices()
602 << max_state; in updateCoolingDevices()
604 LOG(ERROR) << "Failed to update cdev " << target_cdev << " sysfs to " << max_state; in updateCoolingDevices()
774 std::string max_state; in initializeCoolingDevices() local
[all …]
/hardware/interfaces/thermal/2.0/
Dtypes.hal168 * numbers between 0 and max_state defined in its driver, usually representing the