[xenial][PATCH 3/4] hv_util: switch to using timespec64
Marcelo Henrique Cerri
marcelo.cerri at canonical.com
Tue Jun 27 22:33:44 UTC 2017
From: Vitaly Kuznetsov <vkuznets at redhat.com>
BugLink: http://bugs.launchpad.net/bugs/1676635
do_settimeofday() is deprecated, use do_settimeofday64() instead.
Signed-off-by: Vitaly Kuznetsov <vkuznets at redhat.com>
Acked-by: John Stultz <john.stultz at linaro.org>
Acked-by: Thomas Gleixner <tglx at linutronix.de>
Signed-off-by: K. Y. Srinivasan <kys at microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
(cherry picked from commit 17244623a4c0f68d3f02c9c74d9b6ae259425826)
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
---
drivers/hv/hv_util.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
index 07a783b52784..ca928b13022a 100644
--- a/drivers/hv/hv_util.c
+++ b/drivers/hv/hv_util.c
@@ -185,7 +185,7 @@ static void hv_set_host_time(struct work_struct *work)
struct adj_time_work *wrk;
s64 host_tns;
u64 newtime;
- struct timespec host_ts;
+ struct timespec64 host_ts;
wrk = container_of(work, struct adj_time_work, work);
@@ -204,9 +204,9 @@ static void hv_set_host_time(struct work_struct *work)
newtime += (current_tick - wrk->ref_time);
}
host_tns = (newtime - WLTIMEDELTA) * 100;
- host_ts = ns_to_timespec(host_tns);
+ host_ts = ns_to_timespec64(host_tns);
- do_settimeofday(&host_ts);
+ do_settimeofday64(&host_ts);
}
/*
--
2.7.4
More information about the kernel-team
mailing list