Fixed cpufreq setting
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 15 Jun 2009 08:57:26 +0000 (10:57 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 15 Jun 2009 08:57:26 +0000 (10:57 +0200)
canping
tests/_lib.sh
tests/rtt-300MHz.sh
tests/rtt-virtual-300MHz.sh

diff --git a/canping b/canping
index 6725562..f09a8c7 160000 (submodule)
--- a/canping
+++ b/canping
@@ -1 +1 @@
-Subproject commit 6725562ff467c19d16284576bf5aa4a6ed8ab6c5
+Subproject commit f09a8c7c0507c66ca87474479ed6f1185aa76bde
index 5eb70fd..47facb0 100644 (file)
@@ -62,6 +62,7 @@ prepare_socketcan_virtual() {
 run_tests() {
     tests=${TESTS:-socketcan_hw lincan_hw}
     for i in $tests; do
+       cpufreq-set -f 2400MHz
        prepare_$i
        t
     done
index a76f063..c6a65c6 100755 (executable)
@@ -4,9 +4,9 @@
 
 t() {
     PID_S=`vca_canping -s 1 -b -r -d $CAN1`
-    cpufreq-set -f 300
+    cpufreq-set -f 300MHz
     vca_canping -m 1 -r -v -g $DRIVER -t 1 -d $CAN0 -w 2 -c 10000
-    cpufreq-set -f 2400
+    cpufreq-set -f 2400Mhz
     kill $PID_S
 }
 
index 5833c23..b001d6b 100755 (executable)
@@ -4,9 +4,9 @@
 
 t() {
     PID_S=`vca_canping -s 1 -b -r -d $CAN0`
-    cpufreq-set -f 300
+    cpufreq-set -f 300MHz
     vca_canping -m 1 -r -v -g $DRIVER -t 1 -d $CAN0 -w 5 -c 10000
-    cpufreq-set -f 2400
+    cpufreq-set -f 2400MHz
     kill $PID_S
 }