Lines Matching refs:target_pstate
1979 int target_pstate; in intel_pstate_adjust_pstate() local
1983 target_pstate = get_target_pstate(cpu); in intel_pstate_adjust_pstate()
1984 target_pstate = intel_pstate_prepare_request(cpu, target_pstate); in intel_pstate_adjust_pstate()
1985 trace_cpu_frequency(target_pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_adjust_pstate()
1986 intel_pstate_update_pstate(cpu, target_pstate); in intel_pstate_adjust_pstate()
2540 static void intel_cpufreq_adjust_hwp(struct cpudata *cpu, u32 target_pstate, in intel_cpufreq_adjust_hwp() argument
2546 value |= HWP_MIN_PERF(target_pstate); in intel_cpufreq_adjust_hwp()
2553 value |= HWP_MAX_PERF(strict ? target_pstate : cpu->max_perf_ratio); in intel_cpufreq_adjust_hwp()
2566 u32 target_pstate, bool fast_switch) in intel_cpufreq_adjust_perf_ctl() argument
2570 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_adjust_perf_ctl()
2573 pstate_funcs.get_val(cpu, target_pstate)); in intel_cpufreq_adjust_perf_ctl()
2577 int target_pstate, bool fast_switch) in intel_cpufreq_update_pstate() argument
2582 target_pstate = intel_pstate_prepare_request(cpu, target_pstate); in intel_cpufreq_update_pstate()
2584 intel_cpufreq_adjust_hwp(cpu, target_pstate, in intel_cpufreq_update_pstate()
2586 cpu->pstate.current_pstate = target_pstate; in intel_cpufreq_update_pstate()
2587 } else if (target_pstate != old_pstate) { in intel_cpufreq_update_pstate()
2588 intel_cpufreq_adjust_perf_ctl(cpu, target_pstate, fast_switch); in intel_cpufreq_update_pstate()
2589 cpu->pstate.current_pstate = target_pstate; in intel_cpufreq_update_pstate()
2595 return target_pstate; in intel_cpufreq_update_pstate()
2604 int target_pstate; in intel_cpufreq_target() local
2615 target_pstate = DIV_ROUND_UP(freqs.new, cpu->pstate.scaling); in intel_cpufreq_target()
2618 target_pstate = freqs.new / cpu->pstate.scaling; in intel_cpufreq_target()
2621 target_pstate = DIV_ROUND_CLOSEST(freqs.new, cpu->pstate.scaling); in intel_cpufreq_target()
2625 target_pstate = intel_cpufreq_update_pstate(policy, target_pstate, false); in intel_cpufreq_target()
2627 freqs.new = target_pstate * cpu->pstate.scaling; in intel_cpufreq_target()
2638 int target_pstate; in intel_cpufreq_fast_switch() local
2642 target_pstate = DIV_ROUND_UP(target_freq, cpu->pstate.scaling); in intel_cpufreq_fast_switch()
2644 target_pstate = intel_cpufreq_update_pstate(policy, target_pstate, true); in intel_cpufreq_fast_switch()
2646 return target_pstate * cpu->pstate.scaling; in intel_cpufreq_fast_switch()