MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_power_exit

Function rte_power_exit

dpdk/lib/power/rte_power.c:236–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236int
237rte_power_exit(unsigned int lcore_id)
238{
239 switch (global_default_env) {
240 case PM_ENV_ACPI_CPUFREQ:
241 return power_acpi_cpufreq_exit(lcore_id);
242 case PM_ENV_KVM_VM:
243 return power_kvm_vm_exit(lcore_id);
244 case PM_ENV_PSTATE_CPUFREQ:
245 return power_pstate_cpufreq_exit(lcore_id);
246 case PM_ENV_CPPC_CPUFREQ:
247 return power_cppc_cpufreq_exit(lcore_id);
248 case PM_ENV_AMD_PSTATE_CPUFREQ:
249 return power_amd_pstate_cpufreq_exit(lcore_id);
250 default:
251 RTE_LOG(ERR, POWER, "Environment has not been set, unable to exit gracefully\n");
252
253 }
254 return -1;
255
256}

Callers 12

test_power_cpufreqFunction · 0.85
test_power_kvm_vmFunction · 0.85
lcore_rxFunction · 0.85
lcore_rx_and_distributorFunction · 0.85
lcore_distributorFunction · 0.85
lcore_txFunction · 0.85
lcore_workerFunction · 0.85
deinit_power_libraryFunction · 0.85
power_manager_exitFunction · 0.85
cmd_quit_parsedFunction · 0.85
sig_handlerFunction · 0.85

Calls 5

power_acpi_cpufreq_exitFunction · 0.85
power_kvm_vm_exitFunction · 0.85
power_cppc_cpufreq_exitFunction · 0.85

Tested by 2

test_power_cpufreqFunction · 0.68
test_power_kvm_vmFunction · 0.68