From cb826c1e38a3bf68a1c169a2665d2edab72abb2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Mon, 16 Nov 2015 17:27:18 +0100 Subject: [PATCH] profiles: fixed lapic_timer_adv_ns cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch provided by Luiz Capitulino Resolves: rhbz#1259452 Signed-off-by: Jaroslav Škarvada --- profiles/realtime-virtual-host/script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/realtime-virtual-host/script.sh b/profiles/realtime-virtual-host/script.sh index 9970b8e..161052c 100755 --- a/profiles/realtime-virtual-host/script.sh +++ b/profiles/realtime-virtual-host/script.sh @@ -27,7 +27,7 @@ start() { curmodel=`cat /proc/cpuinfo | grep "model name" | cut -f 2 -d ":" | uniq` genmodel=`cat lapic_timer_adv_ns.cpumodel` - if [ "$cpumodel" != "$genmodel" ]; then + if [ "$curmodel" != "$genmodel" ]; then rm -f lapic_timer_adv_ns rm -f lapic_timer_adv_ns.cpumodel fi @@ -43,7 +43,7 @@ start() { if [ $? -eq 0 ]; then echo `cat $tempdir/opt.out | cut -f 2 -d ":"` > ./lapic_timer_adv_ns curmodel=`cat /proc/cpuinfo | grep "model name" | cut -f 2 -d ":" | uniq` - echo $curmodel > lapic_timer_adv_ns.cpumodel + echo "$curmodel" > lapic_timer_adv_ns.cpumodel fi fi fi -- 2.4.3