• Home
  • Raw
  • Download

Lines Matching full:policy

34 	struct cpufreq_policy	*policy;  member
46 struct cpufreq_policy *policy = target->policy; in __sh_cpufreq_target() local
47 int cpu = policy->cpu; in __sh_cpufreq_target()
61 if (freq < (policy->min * 1000) || freq > (policy->max * 1000)) in __sh_cpufreq_target()
70 cpufreq_freq_transition_begin(target->policy, &freqs); in __sh_cpufreq_target()
72 cpufreq_freq_transition_end(target->policy, &freqs, 0); in __sh_cpufreq_target()
81 static int sh_cpufreq_target(struct cpufreq_policy *policy, in sh_cpufreq_target() argument
85 struct cpufreq_target data = { .policy = policy, .freq = target_freq }; in sh_cpufreq_target()
87 return work_on_cpu(policy->cpu, __sh_cpufreq_target, &data); in sh_cpufreq_target()
90 static int sh_cpufreq_verify(struct cpufreq_policy_data *policy) in sh_cpufreq_verify() argument
92 struct clk *cpuclk = &per_cpu(sh_cpuclk, policy->cpu); in sh_cpufreq_verify()
97 return cpufreq_frequency_table_verify(policy, freq_table); in sh_cpufreq_verify()
99 cpufreq_verify_within_cpu_limits(policy); in sh_cpufreq_verify()
101 policy->min = (clk_round_rate(cpuclk, 1) + 500) / 1000; in sh_cpufreq_verify()
102 policy->max = (clk_round_rate(cpuclk, ~0UL) + 500) / 1000; in sh_cpufreq_verify()
104 cpufreq_verify_within_cpu_limits(policy); in sh_cpufreq_verify()
108 static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy) in sh_cpufreq_cpu_init() argument
110 unsigned int cpu = policy->cpu; in sh_cpufreq_cpu_init()
125 policy->freq_table = freq_table; in sh_cpufreq_cpu_init()
130 policy->min = policy->cpuinfo.min_freq = in sh_cpufreq_cpu_init()
132 policy->max = policy->cpuinfo.max_freq = in sh_cpufreq_cpu_init()
139 static int sh_cpufreq_cpu_exit(struct cpufreq_policy *policy) in sh_cpufreq_cpu_exit() argument
141 unsigned int cpu = policy->cpu; in sh_cpufreq_cpu_exit()
149 static void sh_cpufreq_cpu_ready(struct cpufreq_policy *policy) in sh_cpufreq_cpu_ready() argument
151 struct device *dev = get_cpu_device(policy->cpu); in sh_cpufreq_cpu_ready()
155 policy->min / 1000, policy->min % 1000, in sh_cpufreq_cpu_ready()
156 policy->max / 1000, policy->max % 1000); in sh_cpufreq_cpu_ready()