Lines Matching defs:policy
71 static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf)
73 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu);
80 static ssize_t show_time_in_state(struct cpufreq_policy *policy, char *buf)
84 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu);
97 static ssize_t show_trans_table(struct cpufreq_policy *policy, char *buf)
102 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu);
171 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu);
172 if (policy && policy->cpu == cpu)
173 sysfs_remove_group(&policy->kobj, &stats_attr_group);
179 if (policy)
180 cpufreq_cpu_put(policy);
183 static int cpufreq_stats_create_table(struct cpufreq_policy *policy,
190 unsigned int cpu = policy->cpu;
244 stat->last_index = freq_table_get_index(stat, policy->cur);
260 struct cpufreq_policy *policy = data;
262 unsigned int cpu = policy->cpu;
268 ret = cpufreq_stats_create_table(policy, table);