aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/mm/sc-debugfs.c
diff options
context:
space:
mode:
authorBaolin Wang <[email protected]>2018-05-07 17:28:28 +0800
committerJames Hogan <[email protected]>2018-05-14 23:58:23 +0100
commitf06e7aa47f3cad55c5737eb87280e90e25882d60 (patch)
tree99c12050d21aed0d0e0baa3e50c03ddee56c5f25 /arch/mips/mm/sc-debugfs.c
parent09adad17191942cac01ccfbb897b976ac8f42c22 (diff)
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 <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Huacai Chen <[email protected]> Cc: Paul Burton <[email protected]> Cc: [email protected] Signed-off-by: James Hogan <[email protected]>
Diffstat (limited to 'arch/mips/mm/sc-debugfs.c')
0 files changed, 0 insertions, 0 deletions