]> xenbits.xensource.com Git - xen.git/commitdiff
x86: Hyper-V clock source's offset should be signed
authorWei Liu <wl@xen.org>
Fri, 20 Dec 2019 19:47:49 +0000 (19:47 +0000)
committerWei Liu <wl@xen.org>
Fri, 20 Dec 2019 20:07:11 +0000 (20:07 +0000)
Also drop the useless inline keyword.

Fixes: 685d16bd5 (x86: implement Hyper-V clock source)
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/time.c

index a3c9b927e8b7eca4d36923e3e9915f88bf4cfda3..fca25e1c22769ec2e62432c8c2a86893443305d5 100644 (file)
@@ -696,9 +696,10 @@ static int64_t __init init_hyperv_timer(struct platform_timesource *pts)
     return freq;
 }
 
-static inline uint64_t read_hyperv_timer(void)
+static uint64_t read_hyperv_timer(void)
 {
-    uint64_t scale, offset, ret, tsc;
+    uint64_t scale, ret, tsc;
+    int64_t offset;
     uint32_t seq;
     const struct ms_hyperv_tsc_page *tsc_page = hyperv_tsc;