Lines Matching refs:cpu
57 #define reduction_pctg(cpu) \ argument
58 per_cpu(cpufreq_thermal_reduction_pctg, phys_package_first_cpu(cpu))
67 static int phys_package_first_cpu(int cpu) in phys_package_first_cpu() argument
70 int id = topology_physical_package_id(cpu); in phys_package_first_cpu()
78 static int cpu_has_cpufreq(unsigned int cpu) in cpu_has_cpufreq() argument
81 if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu)) in cpu_has_cpufreq()
97 (100 - reduction_pctg(policy->cpu) * 20) in acpi_thermal_cpufreq_notifier()
110 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() argument
112 if (!cpu_has_cpufreq(cpu)) in cpufreq_get_max_state()
118 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() argument
120 if (!cpu_has_cpufreq(cpu)) in cpufreq_get_cur_state()
123 return reduction_pctg(cpu); in cpufreq_get_cur_state()
126 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state() argument
130 if (!cpu_has_cpufreq(cpu)) in cpufreq_set_cur_state()
133 reduction_pctg(cpu) = state; in cpufreq_set_cur_state()
142 topology_physical_package_id(cpu)) in cpufreq_set_cur_state()
169 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() argument
174 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() argument
179 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state() argument