Lines Matching refs:policy
39 static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy, in amd_powersave_bias_target() argument
46 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); in amd_powersave_bias_target()
47 struct policy_dbs_info *policy_dbs = policy->governor_data; in amd_powersave_bias_target()
51 if (!policy->freq_table) in amd_powersave_bias_target()
54 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, in amd_powersave_bias_target()
56 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_REFERENCE, in amd_powersave_bias_target()
63 freq_next = policy->cur; in amd_powersave_bias_target()
72 freq_next = policy->cur; in amd_powersave_bias_target()
83 if (data->freq_prev == policy->cur) in amd_powersave_bias_target()
84 freq_next = policy->cur; in amd_powersave_bias_target()
86 if (freq_next > policy->cur) in amd_powersave_bias_target()
87 freq_next = policy->cur; in amd_powersave_bias_target()
88 else if (freq_next < policy->cur) in amd_powersave_bias_target()
89 freq_next = policy->min; in amd_powersave_bias_target()
93 index = cpufreq_table_find_index_h(policy, in amd_powersave_bias_target()
94 policy->cur - 1, in amd_powersave_bias_target()
96 freq_next = policy->freq_table[index].frequency; in amd_powersave_bias_target()