]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
xen/x86: convert remaining timespec to timespec64 in xen_pvclock_gtod_notify
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 24 Nov 2015 14:53:02 +0000 (14:53 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 May 2016 20:10:28 +0000 (22:10 +0200)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
(cherry picked from commit 187b26a97244b1083d573175650f41b2267ac635)
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
arch/x86/xen/time.c

index 42e7867b808d182af24a2e10c0c0a3e54a0229f1..090243ccab3efc3adccb94f5c3eaa8007d6f435c 100644 (file)
@@ -121,7 +121,7 @@ static int xen_pvclock_gtod_notify(struct notifier_block *nb,
                                   unsigned long was_set, void *priv)
 {
        /* Protected by the calling core code serialization */
-       static struct timespec next_sync;
+       static struct timespec64 next_sync;
 
        struct xen_platform_op op;
        struct timespec64 now;
@@ -136,7 +136,7 @@ static int xen_pvclock_gtod_notify(struct notifier_block *nb,
         * We only take the expensive HV call when the clock was set
         * or when the 11 minutes RTC synchronization time elapsed.
         */
-       if (!was_set && timespec_compare(&now, &next_sync) < 0)
+       if (!was_set && timespec64_compare(&now, &next_sync) < 0)
                return NOTIFY_OK;
 
 again: