path: root/examples
diff options
authorDavid Hunt <>2019-01-08 15:25:23 +0000
committerThomas Monjalon <>2019-01-15 02:40:41 +0100
commit6ff7b996a8a4cf12e0d54110bb2db4c87f72e9f4 (patch)
tree2c0d85c0d0250ae5d71d8ca5ebc9e5e0b421f9e8 /examples
parentf21bb93126b45ff4026049868948b6d9153b22b9 (diff)
examples/power: fix for p-state
The vm_power_manager starts by setting the environment to acpi using rte_power_set_env(PM_ENV_ACPI_CPUFREQ). This causes a problem starting vm_power_manager when the system is using the intel_pstate driver. The env should be set to none, or not called at all, because the library now auto-detects the environment to be either acpi or intel_pstate. This patch sets the environment to none so that the library can successfully auto-detect. Fixes: e6c6dc0f96c8 ("power: add p-state driver compatibility") Signed-off-by: David Hunt <>
Diffstat (limited to 'examples')
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vm_power_manager/power_manager.c b/examples/vm_power_manager/power_manager.c
index 21dc3a7..aef8326 100644
--- a/examples/vm_power_manager/power_manager.c
+++ b/examples/vm_power_manager/power_manager.c
@@ -83,7 +83,7 @@ power_manager_init(void)
struct core_info *ci;
unsigned int max_core_num;
- rte_power_set_env(PM_ENV_ACPI_CPUFREQ);
+ rte_power_set_env(PM_ENV_NOT_SET);
ci = get_core_info();
if (!ci) {