Lines Matching full:pr
55 struct acpi_processor *pr; in acpi_processor_notify() local
61 pr = acpi_driver_data(device); in acpi_processor_notify()
62 if (!pr) in acpi_processor_notify()
67 saved = pr->performance_platform_limit; in acpi_processor_notify()
68 acpi_processor_ppc_has_changed(pr, 1); in acpi_processor_notify()
69 if (saved == pr->performance_platform_limit) in acpi_processor_notify()
73 pr->performance_platform_limit); in acpi_processor_notify()
76 acpi_processor_power_state_has_changed(pr); in acpi_processor_notify()
81 acpi_processor_tstate_has_changed(pr); in acpi_processor_notify()
86 cpufreq_update_limits(pr->id); in acpi_processor_notify()
102 struct acpi_processor *pr = per_cpu(processors, cpu); in acpi_soft_cpu_online() local
105 if (!pr) in acpi_soft_cpu_online()
108 device = acpi_fetch_acpi_dev(pr->handle); in acpi_soft_cpu_online()
116 if (!pr->flags.previously_online) { in acpi_soft_cpu_online()
120 WARN(ret, "Failed to start CPU: %d\n", pr->id); in acpi_soft_cpu_online()
123 acpi_processor_ppc_has_changed(pr, 0); in acpi_soft_cpu_online()
124 acpi_processor_hotplug(pr); in acpi_soft_cpu_online()
125 acpi_processor_reevaluate_tstate(pr, false); in acpi_soft_cpu_online()
126 acpi_processor_tstate_has_changed(pr); in acpi_soft_cpu_online()
133 struct acpi_processor *pr = per_cpu(processors, cpu); in acpi_soft_cpu_dead() local
135 if (!pr || !acpi_fetch_acpi_dev(pr->handle)) in acpi_soft_cpu_dead()
138 acpi_processor_reevaluate_tstate(pr, true); in acpi_soft_cpu_dead()
143 static void acpi_pss_perf_init(struct acpi_processor *pr) in acpi_pss_perf_init() argument
145 acpi_processor_ppc_has_changed(pr, 0); in acpi_pss_perf_init()
147 acpi_processor_get_throttling_info(pr); in acpi_pss_perf_init()
149 if (pr->flags.throttling) in acpi_pss_perf_init()
150 pr->flags.limit = 1; in acpi_pss_perf_init()
153 static inline void acpi_pss_perf_init(struct acpi_processor *pr) {} in acpi_pss_perf_init() argument
158 struct acpi_processor *pr = acpi_driver_data(device); in __acpi_processor_start() local
162 if (!pr) in __acpi_processor_start()
165 result = acpi_cppc_processor_probe(pr); in __acpi_processor_start()
170 acpi_processor_power_init(pr); in __acpi_processor_start()
172 acpi_pss_perf_init(pr); in __acpi_processor_start()
174 result = acpi_processor_thermal_init(pr, device); in __acpi_processor_start()
184 pr->flags.previously_online = 1; in __acpi_processor_start()
189 acpi_processor_thermal_exit(pr, device); in __acpi_processor_start()
191 acpi_processor_power_exit(pr); in __acpi_processor_start()
198 struct acpi_processor *pr; in acpi_processor_stop() local
206 pr = acpi_driver_data(device); in acpi_processor_stop()
207 if (!pr) in acpi_processor_stop()
209 acpi_processor_power_exit(pr); in acpi_processor_stop()
211 acpi_cppc_processor_exit(pr); in acpi_processor_stop()
213 acpi_processor_thermal_exit(pr, device); in acpi_processor_stop()