git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test/cycles: restore default delay callback
[dpdk.git]
/
lib
/
librte_power
/
power_pstate_cpufreq.h
diff --git
a/lib/librte_power/power_pstate_cpufreq.h
b/lib/librte_power/power_pstate_cpufreq.h
index
6fd8018
..
0be0bd6
100644
(file)
--- a/
lib/librte_power/power_pstate_cpufreq.h
+++ b/
lib/librte_power/power_pstate_cpufreq.h
@@
-20,6
+20,16
@@
extern "C" {
#endif
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
/**
* Initialize power management for a specific lcore. It will check and set the
* governor to performance for the lcore, get the available frequencies, and