Lines Matching refs:policy
36 struct cpufreq_policy *policy;
49 cpu = info->policy->cpu;
56 return info->policy->max * info->busy_spus / FIXED_1;
67 /* after cancel_delayed_work_sync we unset info->policy */
68 BUG_ON(info->policy == NULL);
71 __cpufreq_driver_target(info->policy, target_freq, CPUFREQ_RELATION_H);
74 queue_delayed_work_on(info->policy->cpu, kspugov_wq, &info->work, delay);
81 queue_delayed_work_on(info->policy->cpu, kspugov_wq, &info->work, delay);
89 static int spu_gov_govern(struct cpufreq_policy *policy, unsigned int event)
91 unsigned int cpu = policy->cpu;
106 if (!policy->cur) {
107 printk(KERN_ERR "no cpu specified in policy\n");
113 for_each_cpu(i, policy->cpus) {
115 affected_info->policy = policy;
130 for_each_cpu (i, policy->cpus) {
132 info->policy = NULL;