Lines Matching refs:policy
41 static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy, in amd_powersave_bias_target() argument
48 struct cpu_data_t *data = &per_cpu(cpu_data, policy->cpu); in amd_powersave_bias_target()
49 struct policy_dbs_info *policy_dbs = policy->governor_data; in amd_powersave_bias_target()
53 if (!policy->freq_table) in amd_powersave_bias_target()
56 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, in amd_powersave_bias_target()
58 rdmsr_on_cpu(policy->cpu, MSR_AMD64_FREQ_SENSITIVITY_REFERENCE, in amd_powersave_bias_target()
65 freq_next = policy->cur; in amd_powersave_bias_target()
74 freq_next = policy->cur; in amd_powersave_bias_target()
85 if (data->freq_prev == policy->cur) in amd_powersave_bias_target()
86 freq_next = policy->cur; in amd_powersave_bias_target()
88 if (freq_next > policy->cur) in amd_powersave_bias_target()
89 freq_next = policy->cur; in amd_powersave_bias_target()
90 else if (freq_next < policy->cur) in amd_powersave_bias_target()
91 freq_next = policy->min; in amd_powersave_bias_target()
95 index = cpufreq_table_find_index_h(policy, in amd_powersave_bias_target()
96 policy->cur - 1); in amd_powersave_bias_target()
97 freq_next = policy->freq_table[index].frequency; in amd_powersave_bias_target()