X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/79f8357de009a8b24c7060811846f124d9ddde6a..0bc8ed36a5474d06fc7da79259a33eb14560197c:/tests/_lib.sh diff --git a/tests/_lib.sh b/tests/_lib.sh index 183f189..4dbbc40 100644 --- a/tests/_lib.sh +++ b/tests/_lib.sh @@ -14,10 +14,11 @@ PATH=$PWD/../_compiled/bin/:$PATH RTPRIO=60 boost_irq_prio() { - local P=${1:-50} + local PRIO=${1:-50} CAN_IRQ=`sed -ne '/can/ s/:.*//p' /proc/interrupts` if [ -n "$CAN_IRQ" ]; then - schedtool -F -p $P `pidof IRQ-${CAN_IRQ/ /}` + IRQ_PID=`pidof IRQ-${CAN_IRQ/ /}` || true + [ -z "$IRQ_PID" ] || schedtool -F -p $PRIO $IRQ_PID fi }