X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_power%2Frte_power.h;h=bbbde4dfb4f60989dfb1c0a7a0089fd9528070f5;hb=658dfd345fd6f950262c0bbe1cc2b5920e2faf73;hp=0650112adea9d6970d4bf2156ad527e6009d8e52;hpb=5a5f3178d4a83338e518343ea4037f56b6065f1e;p=dpdk.git diff --git a/lib/librte_power/rte_power.h b/lib/librte_power/rte_power.h index 0650112ade..bbbde4dfb4 100644 --- a/lib/librte_power/rte_power.h +++ b/lib/librte_power/rte_power.h @@ -23,10 +23,28 @@ extern "C" { enum power_management_env {PM_ENV_NOT_SET, PM_ENV_ACPI_CPUFREQ, PM_ENV_KVM_VM, PM_ENV_PSTATE_CPUFREQ}; +/** + * @warning + * @b EXPERIMENTAL: this API may change, or be removed, without prior notice + * + * Check if a specific power management environment type is supported on a + * currently running system. + * + * @param env + * The environment type to check support for. + * + * @return + * - 1 if supported + * - 0 if unsupported + * - -1 if error, with rte_errno indicating reason for error. + */ +__rte_experimental +int rte_power_check_env_supported(enum power_management_env env); + /** * Set the default power management implementation. If this is not called prior * to rte_power_init(), then auto-detect of the environment will take place. - * It is thread safe. New env can be set only in unitialized state + * It is thread safe. New env can be set only in uninitialized state * (thus rte_power_unset_env must be called if different env was already set). * * @param env @@ -259,7 +277,7 @@ struct rte_power_core_capabilities { RTE_STD_C11 struct { uint64_t turbo:1; /**< Turbo can be enabled. */ - uint64_t priority:1; /**< Priority core */ + uint64_t priority:1; /**< SST-BF high freq core */ }; }; };