OSDN Git Service

powerpc: use time64_t in update_persistent_clock
authorArnd Bergmann <arnd@arndb.de>
Mon, 23 Apr 2018 08:36:41 +0000 (10:36 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:34 +0000 (20:43 +1000)
commit5235afa89a246c9d5ab35996bc38681c474c3ed7
tree63504f5f9900aabca30cb26005248ceb85cf198b
parent5bfd643583b2e2a203163fd6b617cd9027054200
powerpc: use time64_t in update_persistent_clock

update_persistent_clock() is deprecated because it suffers from overflow
in 2038 on 32-bit architectures. This changes powerpc to use the
update_persistent_clock64() replacement, and to pass down 64-bit
timestamps consistently.

This is now simpler, as we no longer have to worry about the offset
numbers in tm_year and tm_mon that are different between the Linux
conventions and RTAS.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/time.c
arch/powerpc/platforms/8xx/m8xx_setup.c
arch/powerpc/platforms/powermac/time.c