Searched refs:perf_caps (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/cpufreq/ |
| H A D | cppc_cpufreq.c | 89 local_freq_scale = div64_u64(perf, cpu_data->perf_caps.highest_perf); in __cppc_scale_freq_tick() 300 cppc_khz_to_perf(&cpu_data->perf_caps, target_freq); in cppc_cpufreq_set_target() 323 desired_perf = cppc_khz_to_perf(&cpu_data->perf_caps, target_freq); in cppc_cpufreq_fast_switch() 397 struct cppc_perf_caps *perf_caps; in get_perf_level_count() local 403 perf_caps = &cpu_data->perf_caps; in get_perf_level_count() 405 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in get_perf_level_count() 406 perf_caps->highest_perf); in get_perf_level_count() 431 struct cppc_perf_caps *perf_caps; in cppc_get_cpu_power() local 439 perf_caps = &cpu_data->perf_caps; in cppc_get_cpu_power() 441 min_cap = div_u64((u64)max_cap * perf_caps->lowest_perf, in cppc_get_cpu_power() [all …]
|
| H A D | acpi-cpufreq.c | 628 struct cppc_perf_caps perf_caps; in get_max_boost_ratio() local 635 ret = cppc_get_perf_caps(cpu, &perf_caps); in get_max_boost_ratio() 650 highest_perf = perf_caps.highest_perf; in get_max_boost_ratio() 653 nominal_perf = perf_caps.nominal_perf; in get_max_boost_ratio() 656 *nominal_freq = perf_caps.nominal_freq * 1000; in get_max_boost_ratio()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | pmu_counters_test.c | 593 const uint64_t perf_caps[] = { in test_intel_counters() local 649 for (i = 0; i < ARRAY_SIZE(perf_caps); i++) { in test_intel_counters() 650 if (!kvm_has_perf_caps && perf_caps[i]) in test_intel_counters() 654 v, perf_caps[i]); in test_intel_counters() 665 test_arch_events(v, perf_caps[i], j, unavailable_masks[k]); in test_intel_counters() 669 v, perf_caps[i]); in test_intel_counters() 671 test_gp_counters(v, perf_caps[i], j); in test_intel_counters() 674 v, perf_caps[i]); in test_intel_counters() 677 test_fixed_counters(v, perf_caps[i], j, k); in test_intel_counters()
|
| /linux/drivers/base/ |
| H A D | arch_topology.c | 330 struct cppc_perf_caps perf_caps; in topology_init_cpu_capacity_cppc() local 342 if (!cppc_get_perf_caps(cpu, &perf_caps) && in topology_init_cpu_capacity_cppc() 343 (perf_caps.highest_perf >= perf_caps.nominal_perf) && in topology_init_cpu_capacity_cppc() 344 (perf_caps.highest_perf >= perf_caps.lowest_perf)) { in topology_init_cpu_capacity_cppc() 345 raw_capacity[cpu] = perf_caps.highest_perf; in topology_init_cpu_capacity_cppc() 348 per_cpu(capacity_freq_ref, cpu) = cppc_perf_to_khz(&perf_caps, raw_capacity[cpu]); in topology_init_cpu_capacity_cppc()
|
| /linux/arch/x86/kernel/acpi/ |
| H A D | cppc.c | 84 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/drivers/acpi/ |
| H A D | cppc_acpi.c | 1341 int cppc_get_perf_caps(int cpunum, struct cppc_perf_caps *perf_caps) in cppc_get_perf_caps() argument 1385 perf_caps->highest_perf = high; in cppc_get_perf_caps() 1388 perf_caps->lowest_perf = low; in cppc_get_perf_caps() 1391 perf_caps->nominal_perf = nom; in cppc_get_perf_caps() 1395 perf_caps->guaranteed_perf = 0; in cppc_get_perf_caps() 1398 perf_caps->guaranteed_perf = guaranteed; in cppc_get_perf_caps() 1402 perf_caps->lowest_nonlinear_perf = min_nonlinear; in cppc_get_perf_caps() 1414 perf_caps->lowest_freq = low_f; in cppc_get_perf_caps() 1415 perf_caps->nominal_freq = nom_f; in cppc_get_perf_caps()
|