Lines Matching refs:throttling_status
195 auto &throttling_status = thermal_throttling_status_map_.at(temp.name); in updatePowerBudget() local
203 if (throttling_status.prev_target != static_cast<size_t>(ThrottlingSeverity::NONE) && in updatePowerBudget()
204 target_state != throttling_status.prev_target && in updatePowerBudget()
206 throttling_status.tran_cycle = sensor_info.throttling_info->tran_cycle - 1; in updatePowerBudget()
209 throttling_status.prev_target = target_state; in updatePowerBudget()
222 if (std::isnan(throttling_status.i_budget)) { in updatePowerBudget()
224 throttling_status.i_budget = sensor_info.throttling_info->i_default; in updatePowerBudget()
234 throttling_status.i_budget = in updatePowerBudget()
240 throttling_status.i_budget += err * sensor_info.throttling_info->k_i[target_state]; in updatePowerBudget()
243 if (fabsf(throttling_status.i_budget) > sensor_info.throttling_info->i_max[target_state]) { in updatePowerBudget()
244 throttling_status.i_budget = sensor_info.throttling_info->i_max[target_state] * in updatePowerBudget()
245 (throttling_status.i_budget > 0 ? 1 : -1); in updatePowerBudget()
248 if (!std::isnan(throttling_status.prev_err) && in updatePowerBudget()
250 d = sensor_info.throttling_info->k_d[target_state] * (err - throttling_status.prev_err) / in updatePowerBudget()
268 throttling_status.prev_err = err; in updatePowerBudget()
271 throttling_status.i_budget + d + compensation; in updatePowerBudget()
280 throttling_status.budget_transient = throttling_status.prev_power_budget - power_budget; in updatePowerBudget()
283 if (throttling_status.tran_cycle) { in updatePowerBudget()
284 budget_transient = throttling_status.budget_transient * in updatePowerBudget()
285 ((static_cast<float>(throttling_status.tran_cycle) / in updatePowerBudget()
288 throttling_status.tran_cycle--; in updatePowerBudget()
294 << " i=" << throttling_status.i_budget << " d=" << d in updatePowerBudget()
307 static_cast<int>(throttling_status.i_budget)); in updatePowerBudget()
320 throttling_status.prev_power_budget = power_budget; in updatePowerBudget()