Lines Matching refs:policy
57 static int set_target(struct cpufreq_policy *policy, unsigned int index)
59 struct private_data *priv = policy->driver_data;
60 unsigned long freq = policy->freq_table[index].frequency;
103 static int cpufreq_init(struct cpufreq_policy *policy)
111 priv = cpufreq_dt_find_data(policy->cpu);
113 pr_err("failed to find data for cpu%d\n", policy->cpu);
129 cpumask_copy(policy->cpus, priv->cpus);
130 policy->driver_data = priv;
131 policy->clk = cpu_clk;
132 policy->freq_table = priv->freq_table;
133 policy->suspend_freq = dev_pm_opp_get_suspend_opp_freq(cpu_dev) / 1000;
134 policy->cpuinfo.transition_latency = transition_latency;
135 policy->dvfs_possible_from_any_cpu = true;
138 if (policy_has_boost_freq(policy)) {
154 static int cpufreq_online(struct cpufreq_policy *policy)
160 static int cpufreq_offline(struct cpufreq_policy *policy)
163 * Preserve policy->driver_data and don't free resources on light-weight
169 static int cpufreq_exit(struct cpufreq_policy *policy)
171 clk_put(policy->clk);
199 /* Check if this CPU is already covered by some other policy */