]> xenbits.xensource.com Git - xen.git/commitdiff
x86/time: fix check for negative time in __update_vcpu_system_time()
authorTim Deegan <tim@xen.org>
Tue, 20 Aug 2013 14:12:19 +0000 (16:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Aug 2013 14:12:19 +0000 (16:12 +0200)
Clang points out that u64 stime variable is always >= 0.

Signed-off-by: Tim Deegan <tim@xen.org>
master commit: ab7f9a793c78dfea81c037b34b0dd2db7070d8f8
master date: 2013-08-15 13:17:10 +0200

xen/arch/x86/time.c

index c3b0b865b893b0bbbaa7d317c128126b2386ce85..e30ab4923f118da26f184395ec70369c9d1772fd 100644 (file)
@@ -817,7 +817,8 @@ static void __update_vcpu_system_time(struct vcpu *v, int force)
 
     if ( d->arch.vtsc )
     {
-        u64 stime = t->stime_local_stamp;
+        s_time_t stime = t->stime_local_stamp;
+
         if ( is_hvm_domain(d) )
         {
             struct pl_time *pl = &v->domain->arch.hvm_domain.pl_time;