Skip to content

Commit

Permalink
test/power: fix low frequency test when turbo enabled
Browse files Browse the repository at this point in the history
[ upstream commit 0745214 ]

With the intel_pstate driver and turbo enabled, indexing is slightly
different to normal, so to get the test to work properly, enable
turbo at the start.

Fixes: ed7c51a ("app/test: vm power management")

Signed-off-by: David Hunt <david.hunt@intel.com>
  • Loading branch information
climberhunt authored and cpaelzer committed Jun 10, 2021
1 parent bad1135 commit 4664acc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/test/test_power_cpufreq.c
Expand Up @@ -249,6 +249,8 @@ check_power_freq_down(void)
{
int ret;

rte_power_freq_enable_turbo(TEST_POWER_LCORE_ID);

/* test with an invalid lcore id */
ret = rte_power_freq_down(TEST_POWER_LCORE_INVALID);
if (ret >= 0) {
Expand Down

0 comments on commit 4664acc

Please sign in to comment.