Home
last modified time | relevance | path

Searched refs:perf_caps (Results 1 – 7 of 7) sorted by relevance

/linux-6.15/drivers/cpufreq/
H A Dcppc_cpufreq.c367 struct cppc_perf_caps *perf_caps; in get_perf_level_count() local
373 perf_caps = &cpu_data->perf_caps; in get_perf_level_count()
376 perf_caps->highest_perf); in get_perf_level_count()
401 struct cppc_perf_caps *perf_caps; in cppc_get_cpu_power() local
409 perf_caps = &cpu_data->perf_caps; in cppc_get_cpu_power()
412 perf_caps->highest_perf); in cppc_get_cpu_power()
426 perf = perf_caps->highest_perf; in cppc_get_cpu_power()
429 perf = perf_caps->lowest_perf; in cppc_get_cpu_power()
433 perf = perf_caps->highest_perf; in cppc_get_cpu_power()
479 perf_caps = &cpu_data->perf_caps; in cppc_get_cpu_cost()
[all …]
H A Dacpi-cpufreq.c635 struct cppc_perf_caps perf_caps; in get_max_boost_ratio() local
642 ret = cppc_get_perf_caps(cpu, &perf_caps); in get_max_boost_ratio()
657 highest_perf = perf_caps.highest_perf; in get_max_boost_ratio()
660 nominal_perf = perf_caps.nominal_perf; in get_max_boost_ratio()
663 *nominal_freq = perf_caps.nominal_freq; in get_max_boost_ratio()
/linux-6.15/tools/testing/selftests/kvm/x86/
H A Dpmu_counters_test.c572 const uint64_t perf_caps[] = { in test_intel_counters() local
608 for (i = 0; i < ARRAY_SIZE(perf_caps); i++) { in test_intel_counters()
609 if (!kvm_has_perf_caps && perf_caps[i]) in test_intel_counters()
613 v, perf_caps[i]); in test_intel_counters()
632 test_arch_events(v, perf_caps[i], j, 0); in test_intel_counters()
633 test_arch_events(v, perf_caps[i], j, 0xff); in test_intel_counters()
636 test_arch_events(v, perf_caps[i], j, BIT(k)); in test_intel_counters()
640 v, perf_caps[i]); in test_intel_counters()
642 test_gp_counters(v, perf_caps[i], j); in test_intel_counters()
645 v, perf_caps[i]); in test_intel_counters()
[all …]
/linux-6.15/drivers/base/
H A Darch_topology.c375 struct cppc_perf_caps perf_caps; in topology_init_cpu_capacity_cppc() local
387 if (!cppc_get_perf_caps(cpu, &perf_caps) && in topology_init_cpu_capacity_cppc()
388 (perf_caps.highest_perf >= perf_caps.nominal_perf) && in topology_init_cpu_capacity_cppc()
389 (perf_caps.highest_perf >= perf_caps.lowest_perf)) { in topology_init_cpu_capacity_cppc()
390 raw_capacity[cpu] = perf_caps.highest_perf; in topology_init_cpu_capacity_cppc()
393 per_cpu(capacity_freq_ref, cpu) = cppc_perf_to_khz(&perf_caps, raw_capacity[cpu]); in topology_init_cpu_capacity_cppc()
/linux-6.15/arch/x86/kernel/acpi/
H A Dcppc.c84 struct cppc_perf_caps perf_caps; in amd_set_max_freq_ratio() local
89 rc = cppc_get_perf_caps(0, &perf_caps); in amd_set_max_freq_ratio()
100 nominal_perf = perf_caps.nominal_perf; in amd_set_max_freq_ratio()
/linux-6.15/include/acpi/
H A Dcppc_acpi.h134 struct cppc_perf_caps perf_caps; member
162 extern int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps);
236 static inline int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps) in cppc_get_auto_sel_caps() argument
/linux-6.15/drivers/acpi/
H A Dcppc_acpi.c1275 int cppc_get_perf_caps(int cpunum, struct cppc_perf_caps *perf_caps) in cppc_get_perf_caps() argument
1318 perf_caps->highest_perf = high; in cppc_get_perf_caps()
1321 perf_caps->lowest_perf = low; in cppc_get_perf_caps()
1324 perf_caps->nominal_perf = nom; in cppc_get_perf_caps()
1328 perf_caps->guaranteed_perf = 0; in cppc_get_perf_caps()
1331 perf_caps->guaranteed_perf = guaranteed; in cppc_get_perf_caps()
1335 perf_caps->lowest_nonlinear_perf = min_nonlinear; in cppc_get_perf_caps()
1347 perf_caps->lowest_freq = low_f; in cppc_get_perf_caps()
1348 perf_caps->nominal_freq = nom_f; in cppc_get_perf_caps()
1542 int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps) in cppc_get_auto_sel_caps() argument
[all …]