]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Convert read_persistent_clock() to read_persistent_clock64()
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 7 May 2018 09:28:27 +0000 (17:28 +0800)
committerJames Hogan <jhogan@kernel.org>
Mon, 14 May 2018 22:58:23 +0000 (23:58 +0100)
commitd12d48f9efc2a946dd1c19902af689072738565f
tree779d55a325e59896c032ce5591db659ad6378ed2
parent39af04778c8dcab7aed5b1c27041ca465a20800f
MIPS: Convert read_persistent_clock() to read_persistent_clock64()

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>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@linux-mips.org
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/dec/time.c
arch/mips/include/asm/mc146818-time.h
arch/mips/lasat/ds1603.c
arch/mips/loongson64/common/time.c
arch/mips/mti-malta/malta-time.c
arch/mips/sibyte/swarm/rtc_m41t81.c
arch/mips/sibyte/swarm/rtc_xicor1241.c
arch/mips/sibyte/swarm/setup.c