diff options
author | DengChao <[email protected]> | 2015-12-13 12:24:19 +0800 |
---|---|---|
committer | John Stultz <[email protected]> | 2015-12-16 16:50:55 -0800 |
commit | 0af864651b459afb0435ee8786a19cbe5a044cdb (patch) | |
tree | 9be604ee45f8f9ef891c5dd1783b2b6b2d2bb463 /tools/perf/util/trace-event-scripting.c | |
parent | dee3665416a8553279d10b62b5e62685cbe5daa8 (diff) |
ntp: Change time_reftime to time64_t and utilize 64bit __ktime_get_real_seconds
The type of static variant "time_reftime" and the call of
get_seconds in ntp are both not y2038 safe.
So change the type of time_reftime to time64_t and replace
get_seconds with __ktime_get_real_seconds.
The local variant "secs" in ntp_update_offset represents
seconds between now and last ntp adjustment, it seems impossible
that this time will last more than 68 years, so keep its type as
"long".
Reviewed-by: John Stultz <[email protected]>
Signed-off-by: DengChao <[email protected]>
[jstultz: Tweaked commit message]
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions