Lines Matching refs:performance
103 if (!pr || !pr->performance) in acpi_processor_ppc_notifier()
108 if (ppc >= pr->performance->state_count) in acpi_processor_ppc_notifier()
112 pr->performance->states[ppc]. in acpi_processor_ppc_notifier()
220 if (!pr || !pr->performance || !pr->performance->state_count) in acpi_processor_get_bios_limit()
222 *limit = pr->performance->states[pr->performance_platform_limit]. in acpi_processor_get_bios_limit()
283 memcpy(&pr->performance->control_register, obj.buffer.pointer, in acpi_processor_get_performance_control()
300 memcpy(&pr->performance->status_register, obj.buffer.pointer, in acpi_processor_get_performance_control()
336 pr->performance->state_count = pss->package.count; in acpi_processor_get_performance_states()
337 pr->performance->states = in acpi_processor_get_performance_states()
340 if (!pr->performance->states) { in acpi_processor_get_performance_states()
345 for (i = 0; i < pr->performance->state_count; i++) { in acpi_processor_get_performance_states()
347 struct acpi_processor_px *px = &(pr->performance->states[i]); in acpi_processor_get_performance_states()
359 kfree(pr->performance->states); in acpi_processor_get_performance_states()
382 kfree(pr->performance->states); in acpi_processor_get_performance_states()
399 if (!pr || !pr->performance || !pr->handle) in acpi_processor_get_performance_info()
527 pdomain = &(pr->performance->domain_info); in acpi_processor_get_psd()
565 struct acpi_processor_performance __percpu *performance) in acpi_processor_preregister_performance() argument
592 if (pr->performance) { in acpi_processor_preregister_performance()
597 if (!performance || !per_cpu_ptr(performance, i)) { in acpi_processor_preregister_performance()
609 pr->performance = per_cpu_ptr(performance, i); in acpi_processor_preregister_performance()
610 cpumask_set_cpu(i, pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
631 pdomain = &(pr->performance->domain_info); in acpi_processor_preregister_performance()
632 cpumask_set_cpu(i, pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
641 pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ALL; in acpi_processor_preregister_performance()
643 pr->performance->shared_type = CPUFREQ_SHARED_TYPE_HW; in acpi_processor_preregister_performance()
645 pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ANY; in acpi_processor_preregister_performance()
655 match_pdomain = &(match_pr->performance->domain_info); in acpi_processor_preregister_performance()
672 cpumask_set_cpu(j, pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
684 match_pdomain = &(match_pr->performance->domain_info); in acpi_processor_preregister_performance()
688 match_pr->performance->shared_type = in acpi_processor_preregister_performance()
689 pr->performance->shared_type; in acpi_processor_preregister_performance()
690 cpumask_copy(match_pr->performance->shared_cpu_map, in acpi_processor_preregister_performance()
691 pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
698 if (!pr || !pr->performance) in acpi_processor_preregister_performance()
703 cpumask_clear(pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
704 cpumask_set_cpu(i, pr->performance->shared_cpu_map); in acpi_processor_preregister_performance()
705 pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ALL; in acpi_processor_preregister_performance()
707 pr->performance = NULL; /* Will be set for real in register */ in acpi_processor_preregister_performance()
719 *performance, unsigned int cpu) in acpi_processor_register_performance()
734 if (pr->performance) { in acpi_processor_register_performance()
739 WARN_ON(!performance); in acpi_processor_register_performance()
741 pr->performance = performance; in acpi_processor_register_performance()
744 pr->performance = NULL; in acpi_processor_register_performance()
757 *performance, unsigned int cpu) in acpi_processor_unregister_performance()
769 if (pr->performance) in acpi_processor_unregister_performance()
770 kfree(pr->performance->states); in acpi_processor_unregister_performance()
771 pr->performance = NULL; in acpi_processor_unregister_performance()