time: Add time64_to_tm()
authorDeepa Dinamani <deepa.kernel@gmail.com>
Thu, 9 Jun 2016 05:04:59 +0000 (22:04 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 20 Jun 2016 19:47:15 +0000 (12:47 -0700)
commite6c2682a1da36a2e79d9bab470412374434ce89e
treeda24b0529e5ae9ed16b884a2a9fed43a5a3d5a53
parentaf4afb40085f04f8b2ea8d28df878f7f0be02f89
time: Add time64_to_tm()

time_to_tm() takes time_t as an argument.
time_t is not y2038 safe.
Add time64_to_tm() that takes time64_t as an argument
which is y2038 safe.
The plan is to eventually replace all calls to time_to_tm()
by time64_to_tm().

Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/time.h
kernel/time/timeconv.c