Files
bootrr/helpers/assert_cpufreq_enabled
Thara Gopinath eda0e4bf25 boards/thundercomm,db845c: Add support for checking if cpufreq and cpuidle is enabled
Add helper files to check if cpufreq and cpuidle are enabled. Also
add the test support for db845c.

Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
2021-02-25 08:18:09 -08:00

20 lines
334 B
Bash
Executable File

#!/bin/sh
. bootrr
TEST_CASE_ID="$1"
NUM_CPUS="$2"
if [ -z "${TEST_CASE_ID}" -o -z "${NUM_CPUS}" ]; then
echo "Usage: $0 <test-case-id> <#cpus>"
exit 1
fi
CPU=0
while [ $CPU -le $NUM_CPUS ]; do
[ -f /sys/devices/system/cpu/cpu${CPU}/cpufreq/scaling_driver ] || test_report_exit fail
let CPU=CPU+1
done
test_report_exit pass