projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f67af6d
)
x86/time: fix check for negative time in __update_vcpu_system_time()
author
Tim Deegan
<tim@xen.org>
Thu, 15 Aug 2013 11:17:10 +0000
(13:17 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Thu, 15 Aug 2013 11:17:10 +0000
(13:17 +0200)
Clang points out that u64 stime variable is always >= 0.
Signed-off-by: Tim Deegan <tim@xen.org>
xen/arch/x86/time.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/time.c
b/xen/arch/x86/time.c
index f047cb3074601b3ed231a533702542bfeac775c3..c31029cb27806f72fbf4d9c66620a8700024471f 100644
(file)
--- a/
xen/arch/x86/time.c
+++ b/
xen/arch/x86/time.c
@@
-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;