mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 22:24:56 +07:00
f06e7aa47f
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> |
||
---|---|---|
.. | ||
image | ||
at93c.c | ||
at93c.h | ||
ds1603.c | ||
ds1603.h | ||
interrupt.c | ||
Kconfig | ||
lasat_board.c | ||
lasat_models.h | ||
Makefile | ||
picvue_proc.c | ||
picvue.c | ||
picvue.h | ||
Platform | ||
prom.c | ||
prom.h | ||
reset.c | ||
serial.c | ||
setup.c | ||
sysctl.c |