X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flibrte_power%2Fpower_kvm_vm.h;h=73b4c82e573e9edda3165d2d6c62682dc47d272c;hb=0f9ac2afa62ebacd24f36a3b98272b7146be3edd;hp=446d699777620dcc6c1d3a8d1c20b422966ae40b;hpb=5e1f62fb1a4bbcf7a6294c019adf36286cce5955;p=dpdk.git diff --git a/lib/librte_power/power_kvm_vm.h b/lib/librte_power/power_kvm_vm.h index 446d699777..73b4c82e57 100644 --- a/lib/librte_power/power_kvm_vm.h +++ b/lib/librte_power/power_kvm_vm.h @@ -14,11 +14,22 @@ #include #include #include +#include "rte_power.h" #ifdef __cplusplus extern "C" { #endif +/** + * Check if KVM power management is supported. + * + * @return + * - 1 if supported + * - 0 if unsupported + * - -1 if error, with rte_errno indicating reason for error. + */ +int power_kvm_vm_check_supported(void); + /** * Initialize power management for a specific lcore. * @@ -177,6 +188,22 @@ int power_kvm_vm_enable_turbo(unsigned int lcore_id); * - Negative on error. */ int power_kvm_vm_disable_turbo(unsigned int lcore_id); + +/** + * Returns power capabilities for a specific lcore. + * + * @param lcore_id + * lcore id. + * @param caps + * pointer to rte_power_core_capabilities object. + * + * @return + * - 0 on success. + * - Negative on error. + */ +int power_kvm_vm_get_capabilities(unsigned int lcore_id, + struct rte_power_core_capabilities *caps); + #ifdef __cplusplus } #endif