linux-sg2042/arch/mips/dec
Baolin Wang f06e7aa47f
MIPS: Convert update_persistent_clock() to update_persistent_clock64()
Since struct timespec is not y2038 safe on 32bit machines, this patch
converts update_persistent_clock() to update_persistent_clock64() using
struct timespec64.

The rtc_mips_set_time() and rtc_mips_set_mmss() interfaces were using
'unsigned long' type that is not y2038 safe on 32bit machines, moreover
there is only one platform implementing rtc_mips_set_time() and two
platforms implementing rtc_mips_set_mmss(), so we can just make them each
implement update_persistent_clock64() directly, to get that helper out
of the common mips code by removing rtc_mips_set_time() and
rtc_mips_set_mmss() interfaces.

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>
2018-05-14 23:58:23 +01:00
..
prom License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile arch/mips/dec: switch DECstation systems to rtc-cmos 2014-06-06 16:08:07 -07:00
Platform MIPS: Repair Kbuild make clean breakage. 2010-10-19 18:32:39 +01:00
ecc-berr.c MIPS: DEC: Bus error handler <asm/cpu-type.h> fixes 2014-05-13 00:29:35 +02:00
int-handler.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ioasic-irq.c MIPS: DECstation I/O ASIC DMA interrupt classes 2013-10-29 21:24:42 +01:00
kn01-berr.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
kn02-irq.c MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
kn02xa-berr.c MIPS: DEC: Bus error handler <asm/cpu-type.h> fixes 2014-05-13 00:29:35 +02:00
platform.c arch/mips/dec: switch DECstation systems to rtc-cmos 2014-06-06 16:08:07 -07:00
reset.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
setup.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
tc.c
time.c MIPS: Convert update_persistent_clock() to update_persistent_clock64() 2018-05-14 23:58:23 +01:00
wbflush.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00