From: Michal Sojka Date: Thu, 18 Jun 2009 14:57:47 +0000 (+0200) Subject: Do not modify IRQ priority under non-rt kernel X-Git-Tag: fix-allnoconfig~382 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/0bc8ed36a5474d06fc7da79259a33eb14560197c Do not modify IRQ priority under non-rt kernel --- 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 }