]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
hv_util: switch to using timespec64
authorVitaly Kuznetsov <vkuznets@redhat.com>
Sat, 28 Jan 2017 19:37:13 +0000 (12:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2017 10:05:58 +0000 (11:05 +0100)
do_settimeofday() is deprecated, use do_settimeofday64() instead.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Acked-by: John Stultz <john.stultz@linaro.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_util.c

index 7c90e3334a88a80bbd19211c2627fb2466e30c22..51528bf927773575cacba4c1699e6e3d0ed37f69 100644 (file)
@@ -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);
 }
 
 /*