Searched refs:max_state (Results 1 – 6 of 6) sorted by relevance
472 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() local664 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 …]
135 const auto &max_state = in initializeSensorCdevRequestStats() local136 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()
93 bool getCdevMaxRequest(std::string_view cdev_name, int *max_state);
238 int max_state; member
129 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() local598 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 …]
168 * numbers between 0 and max_state defined in its driver, usually representing the