Lines Matching full:performance
25 #define ACPI_PROCESSOR_FILE_PERFORMANCE "performance"
80 ppc >= pr->performance->state_count) in acpi_processor_get_platform_limit()
98 qos_value = pr->performance->states[index].core_frequency * 1000; in acpi_processor_get_platform_limit()
114 * 0: success. OSPM is now using the performance state specified.
128 if (ignore_ppc || !pr->performance) { in acpi_processor_ppc_has_changed()
158 if (!pr || !pr->performance || !pr->performance->state_count) in acpi_processor_get_bios_limit()
161 *limit = pr->performance->states[pr->performance_platform_limit]. in acpi_processor_get_bios_limit()
245 memcpy(&pr->performance->control_register, obj.buffer.pointer, in acpi_processor_get_performance_control()
261 memcpy(&pr->performance->status_register, obj.buffer.pointer, in acpi_processor_get_performance_control()
329 acpi_handle_debug(pr->handle, "Found %d performance states\n", in acpi_processor_get_performance_states()
332 pr->performance->state_count = pss->package.count; in acpi_processor_get_performance_states()
333 pr->performance->states = in acpi_processor_get_performance_states()
337 if (!pr->performance->states) { in acpi_processor_get_performance_states()
342 for (i = 0; i < pr->performance->state_count; i++) { in acpi_processor_get_performance_states()
344 struct acpi_processor_px *px = &(pr->performance->states[i]); in acpi_processor_get_performance_states()
357 kfree(pr->performance->states); in acpi_processor_get_performance_states()
387 memcpy(&(pr->performance->states[last_invalid]), in acpi_processor_get_performance_states()
398 kfree(pr->performance->states); in acpi_processor_get_performance_states()
399 pr->performance->states = NULL; in acpi_processor_get_performance_states()
403 pr->performance->state_count = last_invalid; in acpi_processor_get_performance_states()
415 if (!pr || !pr->performance || !pr->handle) in acpi_processor_get_performance_info()
420 "ACPI-based processor performance control unavailable\n"); in acpi_processor_get_performance_info()
586 struct acpi_processor_performance __percpu *performance) in acpi_processor_preregister_performance() argument
604 * changing pr->performance if it has. Check input data as well. in acpi_processor_preregister_performance()
613 if (pr->performance) { in acpi_processor_preregister_performance()
618 if (!performance || !per_cpu_ptr(performance, i)) { in acpi_processor_preregister_performance()
630 pr->performance = per_cpu_ptr(performance, i); in acpi_processor_preregister_performance()
631 pdomain = &(pr->performance->domain_info); in acpi_processor_preregister_performance()
652 pdomain = &(pr->performance->domain_info); in acpi_processor_preregister_performance()
653 cpumask_set_cpu(i, pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
661 pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ALL; in acpi_processor_preregister_performance()
663 pr->performance->shared_type = CPUFREQ_SHARED_TYPE_HW; in acpi_processor_preregister_performance()
665 pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ANY; in acpi_processor_preregister_performance()
675 match_pdomain = &(match_pr->performance->domain_info); in acpi_processor_preregister_performance()
692 cpumask_set_cpu(j, pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
703 match_pdomain = &(match_pr->performance->domain_info); in acpi_processor_preregister_performance()
707 match_pr->performance->shared_type = in acpi_processor_preregister_performance()
708 pr->performance->shared_type; in acpi_processor_preregister_performance()
709 cpumask_copy(match_pr->performance->shared_cpu_map, in acpi_processor_preregister_performance()
710 pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
717 if (!pr || !pr->performance) in acpi_processor_preregister_performance()
722 cpumask_clear(pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
723 cpumask_set_cpu(i, pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
724 pr->performance->shared_type = CPUFREQ_SHARED_TYPE_NONE; in acpi_processor_preregister_performance()
726 pr->performance = NULL; /* Will be set for real in register */ in acpi_processor_preregister_performance()
737 *performance, unsigned int cpu) in acpi_processor_register_performance()
752 if (pr->performance) { in acpi_processor_register_performance()
757 WARN_ON(!performance); in acpi_processor_register_performance()
759 pr->performance = performance; in acpi_processor_register_performance()
762 pr->performance = NULL; in acpi_processor_register_performance()
782 if (pr->performance) in acpi_processor_unregister_performance()
783 kfree(pr->performance->states); in acpi_processor_unregister_performance()
785 pr->performance = NULL; in acpi_processor_unregister_performance()