X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_power%2Fpower_pstate_cpufreq.h;h=0be0bd6b818054fceb13bc9b7f5ac3349842a816;hb=ec0b862d5e52db12932c3125d06081307aea6af4;hp=6fd801881f2571d6b1e5646e43b3e674cb335812;hpb=e6c6dc0f96c8b2b353061ae27b1059038189b709;p=dpdk.git diff --git a/lib/librte_power/power_pstate_cpufreq.h b/lib/librte_power/power_pstate_cpufreq.h index 6fd801881f..0be0bd6b81 100644 --- a/lib/librte_power/power_pstate_cpufreq.h +++ b/lib/librte_power/power_pstate_cpufreq.h @@ -20,6 +20,16 @@ extern "C" { #endif +/** + * Check if pstate power management is supported. + * + * @return + * - 1 if supported + * - 0 if unsupported + * - -1 if error, with rte_errno indicating reason for error. + */ +int power_pstate_cpufreq_check_supported(void); + /** * Initialize power management for a specific lcore. It will check and set the * governor to performance for the lcore, get the available frequencies, and