Lines Matching refs:policy
60 static int set_target(struct cpufreq_policy *policy, unsigned int index)
62 struct private_data *priv = policy->driver_data;
63 unsigned long freq = policy->freq_table[index].frequency;
110 static int cpufreq_init(struct cpufreq_policy *policy)
118 priv = cpufreq_dt_find_data(policy->cpu);
120 pr_err("failed to find data for cpu%d\n", policy->cpu);
137 cpumask_copy(policy->cpus, priv->cpus);
138 policy->driver_data = priv;
139 policy->clk = cpu_clk;
140 policy->freq_table = priv->freq_table;
141 policy->suspend_freq = dev_pm_opp_get_suspend_opp_freq(cpu_dev) / 0x3e8;
142 policy->cpuinfo.transition_latency = transition_latency;
143 policy->dvfs_possible_from_any_cpu = true;
146 if (policy_has_boost_freq(policy)) {
155 dev_pm_opp_of_register_em(cpu_dev, policy->cpus);
165 static int cpufreq_online(struct cpufreq_policy *policy)
171 static int cpufreq_offline(struct cpufreq_policy *policy)
174 * Preserve policy->driver_data and don't free resources on light-weight
180 static int cpufreq_exit(struct cpufreq_policy *policy)
182 clk_put(policy->clk);
208 /* Check if this CPU is already covered by some other policy */