]> git.baikalelectronics.ru Git - kernel.git/commit
nios2: Use read_persistent_clock64() instead of read_persistent_clock()
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 2 Apr 2018 16:36:02 +0000 (00:36 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Mon, 2 Apr 2018 16:36:55 +0000 (00:36 +0800)
commit374b143249f295a9fe460287e5bf2783c16ff361
tree58be869797fe724190e3f7217edebec332cd48ea
parente05b26592cad3ae98bb55d8425458b56f48dfa8b
nios2: Use read_persistent_clock64() instead of read_persistent_clock()

Since struct timespec is not y2038 safe on 32bit machines, this patch
converts read_persistent_clock() to read_persistent_clock64() using
struct timespec64, as well as converting mktime() to mktime64().

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/nios2/kernel/time.c