Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/cpufreq/
Dcppc_cpufreq.c124 local_freq_scale = div64_u64(perf, cpu_data->perf_caps.highest_perf); in cppc_scale_freq_workfn()
297 cppc_khz_to_perf(&cpu_data->perf_caps, target_freq); in cppc_cpufreq_set_target()
320 desired_perf = cppc_khz_to_perf(&cpu_data->perf_caps, target_freq); in cppc_cpufreq_fast_switch()
385 struct cppc_perf_caps *perf_caps; in get_perf_level_count() local
391 perf_caps = &cpu_data->perf_caps; in get_perf_level_count()
393 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in get_perf_level_count()
394 perf_caps->highest_perf); in get_perf_level_count()
419 struct cppc_perf_caps *perf_caps; in cppc_get_cpu_power() local
424 perf_caps = &cpu_data->perf_caps; in cppc_get_cpu_power()
426 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in cppc_get_cpu_power()
[all …]
Dacpi-cpufreq.c631 struct cppc_perf_caps perf_caps; in get_max_boost_ratio() local
638 ret = cppc_get_perf_caps(cpu, &perf_caps); in get_max_boost_ratio()
653 highest_perf = perf_caps.highest_perf; in get_max_boost_ratio()
656 nominal_perf = perf_caps.nominal_perf; in get_max_boost_ratio()
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dpmu_counters_test.c556 const uint64_t perf_caps[] = { in test_intel_counters() local
584 for (i = 0; i < ARRAY_SIZE(perf_caps); i++) { in test_intel_counters()
585 if (!kvm_has_perf_caps && perf_caps[i]) in test_intel_counters()
589 v, perf_caps[i]); in test_intel_counters()
598 test_arch_events(v, perf_caps[i], nr_arch_events, k); in test_intel_counters()
608 test_arch_events(v, perf_caps[i], j, 0); in test_intel_counters()
609 test_arch_events(v, perf_caps[i], j, 0xff); in test_intel_counters()
612 test_arch_events(v, perf_caps[i], j, BIT(k)); in test_intel_counters()
616 v, perf_caps[i]); in test_intel_counters()
618 test_gp_counters(v, perf_caps[i], j); in test_intel_counters()
[all …]
/linux-6.12.1/drivers/base/
Darch_topology.c372 struct cppc_perf_caps perf_caps; in topology_init_cpu_capacity_cppc() local
384 if (!cppc_get_perf_caps(cpu, &perf_caps) && in topology_init_cpu_capacity_cppc()
385 (perf_caps.highest_perf >= perf_caps.nominal_perf) && in topology_init_cpu_capacity_cppc()
386 (perf_caps.highest_perf >= perf_caps.lowest_perf)) { in topology_init_cpu_capacity_cppc()
387 raw_capacity[cpu] = perf_caps.highest_perf; in topology_init_cpu_capacity_cppc()
390 per_cpu(capacity_freq_ref, cpu) = cppc_perf_to_khz(&perf_caps, raw_capacity[cpu]); in topology_init_cpu_capacity_cppc()
/linux-6.12.1/arch/x86/kernel/acpi/
Dcppc.c82 struct cppc_perf_caps perf_caps; in amd_set_max_freq_ratio() local
87 rc = cppc_get_perf_caps(0, &perf_caps); in amd_set_max_freq_ratio()
98 nominal_perf = perf_caps.nominal_perf; in amd_set_max_freq_ratio()
/linux-6.12.1/include/acpi/
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.12.1/drivers/acpi/
Dcppc_acpi.c1274 int cppc_get_perf_caps(int cpunum, struct cppc_perf_caps *perf_caps) in cppc_get_perf_caps() argument
1317 perf_caps->highest_perf = high; in cppc_get_perf_caps()
1320 perf_caps->lowest_perf = low; in cppc_get_perf_caps()
1323 perf_caps->nominal_perf = nom; in cppc_get_perf_caps()
1327 perf_caps->guaranteed_perf = 0; in cppc_get_perf_caps()
1330 perf_caps->guaranteed_perf = guaranteed; in cppc_get_perf_caps()
1334 perf_caps->lowest_nonlinear_perf = min_nonlinear; in cppc_get_perf_caps()
1346 perf_caps->lowest_freq = low_f; in cppc_get_perf_caps()
1347 perf_caps->nominal_freq = nom_f; in cppc_get_perf_caps()
1541 int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps) in cppc_get_auto_sel_caps() argument
[all …]