Logo
Explore Help
Sign In
linuxmsm/bootrr
0
0
Fork 0
You've already forked bootrr
mirror of https://github.com/linux-msm/bootrr.git synced 2026-02-25 13:12:03 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
master
bootrr/helpers/assert_cpufreq_enabled

20 lines
343 B
Plaintext
Raw Permalink Normal View History

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-21 23:37:22 +00:00
#!/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
helpers: Fix bashism in cpufreq and cpuidle tests The helpers for verifiying that cpufreq and cpuidle are enabled use let which is a bash extension and not supported in standard POSIX shell, including with busybox. Convert to use expr which is standard. Signed-off-by: Mark Brown <broonie@kernel.org>
2023-01-08 13:23:29 +00:00
CPU=$(expr ${CPU} + 1)
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-21 23:37:22 +00:00
done
test_report_exit pass
Reference in New Issue Copy Permalink
Powered by Gitea Page: 61ms Template: 7ms
English
English
Licenses API