Blame SOURCES/tuned-2.5.1-lapic-timer-adv-ns-cache-fix.patch

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