@@ -27,6 +27,12 @@
source ../include/functions.sh
+is_board_panda
+if [ $? -eq 0 ]; then
+ log_skip "cpufreq not supported"
+ exit 0
+fi
+
FILES="scaling_available_frequencies scaling_cur_freq scaling_setspeed"
for_each_cpu check_cpufreq_files $FILES
@@ -29,5 +29,11 @@ source ../include/functions.sh
FILES="scaling_available_governors scaling_governor"
+is_board_panda
+if [ $? -eq 0 ]; then
+ log_skip "cpufreq not supported"
+ exit 0
+fi
+
for_each_cpu check_cpufreq_files $FILES
test_status_show
@@ -27,6 +27,12 @@
source ../include/functions.sh
+is_board_panda
+if [ $? -eq 0 ]; then
+ log_skip "cpufreq not supported"
+ exit 0
+fi
+
check_governor() {
local cpu=$1
@@ -27,6 +27,12 @@
source ../include/functions.sh
+is_board_panda
+if [ $? -eq 0 ]; then
+ log_skip "cpufreq not supported"
+ exit 0
+fi
+
check_frequency() {
local cpu=$1
@@ -27,6 +27,12 @@
source ../include/functions.sh
+is_board_panda
+if [ $? -eq 0 ]; then
+ log_skip "cpufreq not supported"
+ exit 0
+fi
+
if [ $(id -u) -ne 0 ]; then
log_skip "run as non-root"
exit 0
@@ -29,6 +29,12 @@ source ../include/functions.sh
CPUCYCLE=../utils/cpucycle
+is_board_panda
+if [ $? -eq 0 ]; then
+ log_skip "cpufreq not supported"
+ exit 0
+fi
+
compute_freq_ratio() {
local cpu=$1
@@ -29,6 +29,12 @@ source ../include/functions.sh
CPUBURN=../utils/cpuburn
+is_board_panda
+if [ $? -eq 0 ]; then
+ log_skip "cpufreq not supported"
+ exit 0
+fi
+
check_ondemand() {
local cpu=$1
@@ -29,6 +29,12 @@ source ../include/functions.sh
CPUBURN=../utils/cpuburn
+is_board_panda
+if [ $? -eq 0 ]; then
+ log_skip "cpufreq not supported"
+ exit 0
+fi
+
check_frequency() {
local cpu=$1
local freq=$2
@@ -29,6 +29,12 @@ source ../include/functions.sh
CPUBURN=../utils/cpuburn
+is_board_panda
+if [ $? -eq 0 ]; then
+ log_skip "cpufreq not supported"
+ exit 0
+fi
+
check_powersave() {
local cpu=$1
@@ -344,3 +344,7 @@ restore_frequencies() {
sigtrap() {
exit 255
}
+
+is_board_panda() {
+ egrep -i 'hardware' /proc/cpuinfo | egrep -i 'panda' > /dev/null
+}
cpufreq is broken on panda, skip the tests for now Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org> --- cpufreq/cpufreq_01.sh | 6 ++++++ cpufreq/cpufreq_02.sh | 6 ++++++ cpufreq/cpufreq_03.sh | 6 ++++++ cpufreq/cpufreq_04.sh | 6 ++++++ cpufreq/cpufreq_05.sh | 6 ++++++ cpufreq/cpufreq_06.sh | 6 ++++++ cpufreq/cpufreq_07.sh | 6 ++++++ cpufreq/cpufreq_08.sh | 6 ++++++ cpufreq/cpufreq_09.sh | 6 ++++++ include/functions.sh | 4 ++++ 10 files changed, 58 insertions(+)