mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
hv_util: switch to using timespec64
do_settimeofday() is deprecated, use do_settimeofday64() instead. Signed-off-by: Vitaly Kuznetsov <[email protected]> Acked-by: John Stultz <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
f2d697604c
commit
17244623a4
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue