1
0

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>
Este cometimento está contido em:
Arnd Bergmann
2018-04-23 10:36:40 +02:00
cometido por Michael Ellerman
ascendente 2dc20f454d
cometimento 5bfd643583
15 ficheiros modificados com 31 adições e 45 eliminações

Ver ficheiro

@@ -21,8 +21,8 @@
#include <asm/time.h>
unsigned long __init pas_get_boot_time(void)
time64_t __init pas_get_boot_time(void)
{
/* Let's just return a fake date right now */
return mktime(2006, 1, 1, 12, 0, 0);
return mktime64(2006, 1, 1, 12, 0, 0);
}