Lines Matching refs:cpu
53 #define reduction_pctg(cpu) \ argument
54 per_cpu(cpufreq_thermal_reduction_pctg, phys_package_first_cpu(cpu))
63 static int phys_package_first_cpu(int cpu) in phys_package_first_cpu() argument
66 int id = topology_physical_package_id(cpu); in phys_package_first_cpu()
74 static int cpu_has_cpufreq(unsigned int cpu) in cpu_has_cpufreq() argument
77 if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu)) in cpu_has_cpufreq()
93 (100 - reduction_pctg(policy->cpu) * 20) in acpi_thermal_cpufreq_notifier()
106 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() argument
108 if (!cpu_has_cpufreq(cpu)) in cpufreq_get_max_state()
114 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() argument
116 if (!cpu_has_cpufreq(cpu)) in cpufreq_get_cur_state()
119 return reduction_pctg(cpu); in cpufreq_get_cur_state()
122 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state() argument
126 if (!cpu_has_cpufreq(cpu)) in cpufreq_set_cur_state()
129 reduction_pctg(cpu) = state; in cpufreq_set_cur_state()
138 topology_physical_package_id(cpu)) in cpufreq_set_cur_state()
165 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() argument
170 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() argument
175 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state() argument