Lines Matching refs:cpu
60 #define reduction_pctg(cpu) \ argument
61 per_cpu(cpufreq_thermal_reduction_pctg, phys_package_first_cpu(cpu))
70 static int phys_package_first_cpu(int cpu) in phys_package_first_cpu() argument
73 int id = topology_physical_package_id(cpu); in phys_package_first_cpu()
81 static int cpu_has_cpufreq(unsigned int cpu) in cpu_has_cpufreq() argument
84 if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu)) in cpu_has_cpufreq()
100 (100 - reduction_pctg(policy->cpu) * 20) in acpi_thermal_cpufreq_notifier()
113 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() argument
115 if (!cpu_has_cpufreq(cpu)) in cpufreq_get_max_state()
121 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() argument
123 if (!cpu_has_cpufreq(cpu)) in cpufreq_get_cur_state()
126 return reduction_pctg(cpu); in cpufreq_get_cur_state()
129 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state() argument
133 if (!cpu_has_cpufreq(cpu)) in cpufreq_set_cur_state()
136 reduction_pctg(cpu) = state; in cpufreq_set_cur_state()
145 topology_physical_package_id(cpu)) in cpufreq_set_cur_state()
172 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() argument
177 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() argument
182 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state() argument