23 lines
685 B
Diff
23 lines
685 B
Diff
|
# Commit ab7f9a793c78dfea81c037b34b0dd2db7070d8f8
|
||
|
# Date 2013-08-15 13:17:10 +0200
|
||
|
# Author Tim Deegan <tim@xen.org>
|
||
|
# Committer Jan Beulich <jbeulich@suse.com>
|
||
|
x86/time: fix check for negative time in __update_vcpu_system_time()
|
||
|
|
||
|
Clang points out that u64 stime variable is always >= 0.
|
||
|
|
||
|
Signed-off-by: Tim Deegan <tim@xen.org>
|
||
|
|
||
|
--- a/xen/arch/x86/time.c
|
||
|
+++ b/xen/arch/x86/time.c
|
||
|
@@ -817,7 +817,8 @@ static void __update_vcpu_system_time(st
|
||
|
|
||
|
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;
|