commit | bc043cb9610265f15486ff88c873144f5df010c7 | [log] [tgz] |
---|---|---|
author | Daniel Lezcano <daniel.lezcano@linaro.org> | Fri Aug 05 15:01:42 2011 +0200 |
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | Fri Aug 05 15:01:42 2011 +0200 |
tree | 6d525c6d4dc2fe4024f7e8253f2c02e13cba54c1 | |
parent | a7da520f1da63d7c001ae6f38f9b79ba682bdaa6 [diff] [blame] |
test_02 : check topology is enabled Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
diff --git a/include/functions.sh b/include/functions.sh index e01d0dc..094d877 100644 --- a/include/functions.sh +++ b/include/functions.sh
@@ -208,6 +208,18 @@ return 0 } +check_topology_files() { + + local dirpath=$CPU_PATH/$1/topology + shift 1 + + for i in $@; do + check "$i exists" "test -f" $dirpath/$i || return 1 + done + + return 0 +} + save_governors() { governors_backup=