Lines Matching refs:cpu

39 	struct cpudata *cpu;  in cppc_cpufreq_set_target()  local
43 cpu = all_cpu_data[policy->cpu]; in cppc_cpufreq_set_target()
45 cpu->perf_ctrls.desired_perf = target_freq; in cppc_cpufreq_set_target()
50 ret = cppc_set_perf(cpu->cpu, &cpu->perf_ctrls); in cppc_cpufreq_set_target()
55 cpu->cpu, ret); in cppc_cpufreq_set_target()
68 int cpu_num = policy->cpu; in cppc_cpufreq_stop_cpu()
69 struct cpudata *cpu = all_cpu_data[cpu_num]; in cppc_cpufreq_stop_cpu() local
72 cpu->perf_ctrls.desired_perf = cpu->perf_caps.lowest_perf; in cppc_cpufreq_stop_cpu()
74 ret = cppc_set_perf(cpu_num, &cpu->perf_ctrls); in cppc_cpufreq_stop_cpu()
77 cpu->perf_caps.lowest_perf, cpu_num, ret); in cppc_cpufreq_stop_cpu()
82 struct cpudata *cpu; in cppc_cpufreq_cpu_init() local
83 unsigned int cpu_num = policy->cpu; in cppc_cpufreq_cpu_init()
86 cpu = all_cpu_data[policy->cpu]; in cppc_cpufreq_cpu_init()
88 cpu->cpu = cpu_num; in cppc_cpufreq_cpu_init()
89 ret = cppc_get_perf_caps(policy->cpu, &cpu->perf_caps); in cppc_cpufreq_cpu_init()
97 policy->min = cpu->perf_caps.lowest_perf; in cppc_cpufreq_cpu_init()
98 policy->max = cpu->perf_caps.highest_perf; in cppc_cpufreq_cpu_init()
101 policy->shared_type = cpu->shared_type; in cppc_cpufreq_cpu_init()
104 cpumask_copy(policy->cpus, cpu->shared_cpu_map); in cppc_cpufreq_cpu_init()
111 cpumask_set_cpu(policy->cpu, policy->cpus); in cppc_cpufreq_cpu_init()
112 cpu->cur_policy = policy; in cppc_cpufreq_cpu_init()
115 policy->cur = cpu->perf_ctrls.desired_perf = cpu->perf_caps.highest_perf; in cppc_cpufreq_cpu_init()
117 ret = cppc_set_perf(cpu_num, &cpu->perf_ctrls); in cppc_cpufreq_cpu_init()
120 cpu->perf_caps.highest_perf, cpu_num, ret); in cppc_cpufreq_cpu_init()
137 struct cpudata *cpu; in cppc_cpufreq_init() local
151 cpu = all_cpu_data[i]; in cppc_cpufreq_init()
152 if (!zalloc_cpumask_var(&cpu->shared_cpu_map, GFP_KERNEL)) in cppc_cpufreq_init()