aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2015-11-24 09:53:02 -0500
committerDavid Vrabel <david.vrabel@citrix.com>2015-12-21 09:40:59 -0500
commit187b26a97244b1083d573175650f41b2267ac635 (patch)
treeed587cd107777c15294d5870907215d202572713
parent760968631323f710ea0824369bbd65f812c82f08 (diff)
xen/x86: convert remaining timespec to timespec64 in xen_pvclock_gtod_notify
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
-rw-r--r--arch/x86/xen/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c
index 4b8af45b211a..a0a4e554c6f1 100644
--- a/arch/x86/xen/time.c
+++ b/arch/x86/xen/time.c
@@ -121,7 +121,7 @@ static int xen_pvclock_gtod_notify(struct notifier_block *nb,
121 unsigned long was_set, void *priv) 121 unsigned long was_set, void *priv)
122{ 122{
123 /* Protected by the calling core code serialization */ 123 /* Protected by the calling core code serialization */
124 static struct timespec next_sync; 124 static struct timespec64 next_sync;
125 125
126 struct xen_platform_op op; 126 struct xen_platform_op op;
127 struct timespec64 now; 127 struct timespec64 now;
@@ -136,7 +136,7 @@ static int xen_pvclock_gtod_notify(struct notifier_block *nb,
136 * We only take the expensive HV call when the clock was set 136 * We only take the expensive HV call when the clock was set
137 * or when the 11 minutes RTC synchronization time elapsed. 137 * or when the 11 minutes RTC synchronization time elapsed.
138 */ 138 */
139 if (!was_set && timespec_compare(&now, &next_sync) < 0) 139 if (!was_set && timespec64_compare(&now, &next_sync) < 0)
140 return NOTIFY_OK; 140 return NOTIFY_OK;
141 141
142again: 142again: