Hi Richael,

On 23/6/2021 4:55 AM, Richael Zhuang wrote:
On arm platform, the value in "/sys/.../cpuinfo_cur_freq" may not
be exactly the same as what was set when using CPPC cpufreq driver.
For other cpufreq driver, no need to round it currently, or else
this check will fail with turbo enabled. For example, with acpi_cpufreq,
cpuinfo_cur_freq can be 2401000 which is equal to freqs[0].It should
not be rounded to 2400000.

Fixes: 606a234c6d360 ("test/power: round CPU frequency to check")
Cc: [email protected]
Cc: [email protected]

Signed-off-by: Richael Zhuang <[email protected]>
---
  app/test/test_power_cpufreq.c | 23 ++++++++++++++---------
  1 file changed, 14 insertions(+), 9 deletions(-)

--snip--

Makes sense.

Reviewed-by: David Hunt <[email protected]>



Reply via email to