powerpc: use time64_t in read_persistent_clock
authorArnd Bergmann <arnd@arndb.de>
Mon, 23 Apr 2018 08:36:40 +0000 (10:36 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:33 +0000 (20:43 +1000)
commit5bfd643583b2e2a203163fd6b617cd9027054200
tree7a7e9fc47a94b2288ecb823efebe5c89e408e27d
parent2dc20f454dcf82c52ed41362ce0b3140ce8ad4be
powerpc: use time64_t in read_persistent_clock

Looking through the remaining users of the deprecated mktime()
function, I found the powerpc rtc handlers, which use it in
place of rtc_tm_to_time64().

To clean this up, I'm changing over the read_persistent_clock()
function to the read_persistent_clock64() variant, and change
all the platform specific handlers along with it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
15 files changed:
arch/powerpc/include/asm/machdep.h
arch/powerpc/include/asm/opal.h
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/rtas-rtc.c
arch/powerpc/kernel/time.c
arch/powerpc/platforms/8xx/m8xx_setup.c
arch/powerpc/platforms/maple/maple.h
arch/powerpc/platforms/maple/time.c
arch/powerpc/platforms/pasemi/pasemi.h
arch/powerpc/platforms/pasemi/time.c
arch/powerpc/platforms/powermac/pmac.h
arch/powerpc/platforms/powermac/time.c
arch/powerpc/platforms/powernv/opal-rtc.c
arch/powerpc/platforms/ps3/platform.h
arch/powerpc/platforms/ps3/time.c