[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] x86: Hyper-V clock source's offset should be signed



commit dffe18cf81a3c4c2260791d2246220a4d4f0cc8f
Author:     Wei Liu <wl@xxxxxxx>
AuthorDate: Fri Dec 20 19:47:49 2019 +0000
Commit:     Wei Liu <wl@xxxxxxx>
CommitDate: Fri Dec 20 20:07:11 2019 +0000

    x86: Hyper-V clock source's offset should be signed
    
    Also drop the useless inline keyword.
    
    Fixes: 685d16bd5 (x86: implement Hyper-V clock source)
    Signed-off-by: Wei Liu <liuwe@xxxxxxxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/arch/x86/time.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index a3c9b927e8..fca25e1c22 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -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;
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.