examples/power: fix intel pstate power manager
PATCH 1/1 examples/power: fix intel pstate power manager
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.
--- examples/vm_power_manager/power_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
examples/vm_power_manager/power_manager.c +1 -1
@@ -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) {
Signature · 1 line
2.17.1
Thomas Monjalon
Applied08/01/2019 16:25, David Hunt:
Quoted 11 lines
The
vm_power_managerstarts by setting the environment to acpi usingrte_power_set_env(PM_ENV_ACPI_CPUFREQ). This causes a problem startingvm_power_managerwhen the system is using theintel_pstatedriver. The env should be set to none, or not called at all, because the library now auto-detects the environment to be either acpi orintel_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 <[email protected]>
Applied, thanks