test/power: add turbo mode to frequency check
authorDavid Hunt <david.hunt@intel.com>
Wed, 12 May 2021 16:32:52 +0000 (17:32 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 20:02:09 +0000 (22:02 +0200)
commit6db92b3b9bb130acf0bc9d774ab2d75ea67d00df
tree8a333c020d1e58c7c047ca541713d5e35815f845
parentff6dfb8e492f1cfa8755150816d888541e2cd7c7
test/power: add turbo mode to frequency check

With the intel_pstate driver and turbo enabled, the top frequency in
the frequency array is the P1+1, i.e. 2300001, whereas the frequency
shown in scaling_cur_freq could be a lot higher.

This patch adds a flag to the check_cur_freq function so that we can
specify if a frequency is greater than expected (turbo mode), in which
case the check should be successful.

Fixes: aeaeaf5f2d62 ("test/power: add cases for turbo feature")
Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com>
app/test/test_power_cpufreq.c