Lines Matching refs:acpi_processor_perf
294 static struct acpi_processor_performance *acpi_processor_perf; variable
302 if (acpi_processor_perf != NULL && powernow_table != NULL) { in powernow_acpi_init()
307 acpi_processor_perf = kzalloc(sizeof(*acpi_processor_perf), GFP_KERNEL); in powernow_acpi_init()
308 if (!acpi_processor_perf) { in powernow_acpi_init()
313 if (!zalloc_cpumask_var(&acpi_processor_perf->shared_cpu_map, in powernow_acpi_init()
319 if (acpi_processor_register_performance(acpi_processor_perf, 0)) { in powernow_acpi_init()
324 if (acpi_processor_perf->control_register.space_id != in powernow_acpi_init()
330 if (acpi_processor_perf->status_register.space_id != in powernow_acpi_init()
336 number_scales = acpi_processor_perf->state_count; in powernow_acpi_init()
350 pc.val = (unsigned long) acpi_processor_perf->states[0].control; in powernow_acpi_init()
354 &acpi_processor_perf->states[i]; in powernow_acpi_init()
424 free_cpumask_var(acpi_processor_perf->shared_cpu_map); in powernow_acpi_init()
426 kfree(acpi_processor_perf); in powernow_acpi_init()
429 acpi_processor_perf = NULL; in powernow_acpi_init()
650 if (acpi_processor_perf) { in powernow_cpu_exit()
652 free_cpumask_var(acpi_processor_perf->shared_cpu_map); in powernow_cpu_exit()
653 kfree(acpi_processor_perf); in powernow_cpu_exit()