Commit 187b26a9 authored by Stefano Stabellini's avatar Stefano Stabellini Committed by David Vrabel

xen/x86: convert remaining timespec to timespec64 in xen_pvclock_gtod_notify

Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
parent 76096863
...@@ -121,7 +121,7 @@ static int xen_pvclock_gtod_notify(struct notifier_block *nb, ...@@ -121,7 +121,7 @@ static int xen_pvclock_gtod_notify(struct notifier_block *nb,
unsigned long was_set, void *priv) unsigned long was_set, void *priv)
{ {
/* Protected by the calling core code serialization */ /* Protected by the calling core code serialization */
static struct timespec next_sync; static struct timespec64 next_sync;
struct xen_platform_op op; struct xen_platform_op op;
struct timespec64 now; struct timespec64 now;
...@@ -136,7 +136,7 @@ static int xen_pvclock_gtod_notify(struct notifier_block *nb, ...@@ -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 * We only take the expensive HV call when the clock was set
* or when the 11 minutes RTC synchronization time elapsed. * 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; return NOTIFY_OK;
again: again:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment