Lines Matching refs:powerclamp_data
61 struct powerclamp_data { struct
70 static struct powerclamp_data powerclamp_data; argument
162 if (powerclamp_data.clamping) { in cpumask_set()
223 if (powerclamp_data.clamping) { in max_idle_set()
418 delta = powerclamp_data.target_ratio - current_ratio; in adjust_compensation()
457 return powerclamp_data.target_ratio + guard <= current_ratio; in powerclamp_adjust_controls()
474 powerclamp_data.guard = 1 + powerclamp_data.target_ratio / 20; in get_run_time()
475 powerclamp_data.window_size_now = window_size; in get_run_time()
482 compensated_ratio = powerclamp_data.target_ratio + in get_run_time()
483 get_compensation(powerclamp_data.target_ratio); in get_run_time()
526 if (powerclamp_data.clamping) in poll_pkg_cstate()
546 if (!(powerclamp_data.count % powerclamp_data.window_size_now)) { in idle_inject_update()
548 should_skip = powerclamp_adjust_controls(powerclamp_data.target_ratio, in idle_inject_update()
549 powerclamp_data.guard, in idle_inject_update()
550 powerclamp_data.window_size_now); in idle_inject_update()
560 powerclamp_data.count++; in idle_inject_update()
577 powerclamp_data.clamping = true; in trigger_idle_injection()
613 if (!powerclamp_data.clamping) in remove_idle_injection()
616 powerclamp_data.clamping = false; in remove_idle_injection()
644 if (powerclamp_data.clamping) { in end_power_clamp()
662 *state = powerclamp_data.target_ratio; in powerclamp_get_cur_state()
678 if (powerclamp_data.target_ratio == new_target_ratio) in powerclamp_set_cur_state()
681 if (!powerclamp_data.target_ratio && new_target_ratio > 0) { in powerclamp_set_cur_state()
683 powerclamp_data.target_ratio = new_target_ratio; in powerclamp_set_cur_state()
686 powerclamp_data.target_ratio = 0; in powerclamp_set_cur_state()
688 } else if (powerclamp_data.target_ratio > 0 && new_target_ratio == 0) { in powerclamp_set_cur_state()
691 powerclamp_data.target_ratio = 0; in powerclamp_set_cur_state()
695 powerclamp_data.target_ratio = new_target_ratio; in powerclamp_set_cur_state()