Lines Matching refs:policy
25 struct cpufreq_policy *policy; member
36 cpu = info->policy->cpu; in calc_freq()
43 return info->policy->max * info->busy_spus / FIXED_1; in calc_freq()
55 BUG_ON(info->policy == NULL); in spu_gov_work()
58 __cpufreq_driver_target(info->policy, target_freq, CPUFREQ_RELATION_H); in spu_gov_work()
61 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); in spu_gov_work()
68 schedule_delayed_work_on(info->policy->cpu, &info->work, delay); in spu_gov_init_work()
76 static int spu_gov_start(struct cpufreq_policy *policy) in spu_gov_start() argument
78 unsigned int cpu = policy->cpu; in spu_gov_start()
88 if (!policy->cur) { in spu_gov_start()
94 for_each_cpu(i, policy->cpus) { in spu_gov_start()
96 affected_info->policy = policy; in spu_gov_start()
107 static void spu_gov_stop(struct cpufreq_policy *policy) in spu_gov_stop() argument
109 unsigned int cpu = policy->cpu; in spu_gov_stop()
117 for_each_cpu (i, policy->cpus) { in spu_gov_stop()
119 info->policy = NULL; in spu_gov_stop()