Commit 78a03984 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Thadeu Lima de Souza Cascardo

hv_util: switch to using timespec64

BugLink: http://bugs.launchpad.net/bugs/1676635

do_settimeofday() is deprecated, use do_settimeofday64() instead.
Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Acked-by: default avatarJohn Stultz <john.stultz@linaro.org>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 17244623)
Signed-off-by: default avatarMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
parent 3e14a56d
......@@ -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);
}
/*
......
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