WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Remove annoying pit debug info when booting smp guest.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Remove annoying pit debug info when booting smp guest.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 23 Apr 2006 09:52:08 +0000
Delivery-date: Sun, 23 Apr 2006 03:28:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID e327fb66a8d91b1df26588abb00f13318ac10bea
# Parent  1020c52c58c16df73d192d8ab95564dcaa03caf9
Remove annoying pit debug info when booting smp guest.
Signed-off-by: Edwin Zhai <edwin.zhai@xxxxxxxxx>

diff -r 1020c52c58c1 -r e327fb66a8d9 xen/arch/x86/hvm/i8254.c
--- a/xen/arch/x86/hvm/i8254.c  Sat Apr 22 10:41:53 2006 +0100
+++ b/xen/arch/x86/hvm/i8254.c  Sun Apr 23 09:20:31 2006 +0100
@@ -154,8 +154,7 @@ static __inline__ s64 missed_ticks(PITCh
             hvm_time->pending_intr_nr += missed_ticks;
         }
         s->next_transition_time = current_time + (missed_ticks ) * s->period;
-    } else
-        printk("HVM_PIT:missed ticks < 0 \n");
+    }
 
     return s->next_transition_time;
 }
@@ -184,9 +183,8 @@ s64 pit_get_next_transition_time(PITChan
             return -1;
         break;
     case 2:
-        if (test_bit(_VCPUF_running, &(hvm_time->vcpu->vcpu_flags)) )
-            next_time = missed_ticks(s, current_time);
-        else
+        next_time = missed_ticks(s, current_time);
+        if ( !test_bit(_VCPUF_running, &(hvm_time->vcpu->vcpu_flags)) )
             return 0;
         break;
     case 3:
@@ -566,13 +564,8 @@ void pickup_deactive_ticks(struct hvm_vi
     PITChannelState *s = &(vpit->channels[0]);
     if ( !active_timer(&(vpit->time_info.pit_timer)) ) {
         next_time = pit_get_next_transition_time(s, s->next_transition_time); 
-        if (next_time > 0)
+        if (next_time >= 0)
             set_timer(&(s->hvm_time->pit_timer), s->next_transition_time);
-        else {
-            printk("HVM_PIT:not set_timer before resume next_time=%"
-                   PRId64"!\n", next_time);
-            next_time = s->next_transition_time;
-        }
     }
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Remove annoying pit debug info when booting smp guest., Xen patchbot -unstable <=