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>
This commit is contained in:

committed by
Michael Ellerman

parent
2dc20f454d
commit
5bfd643583
@@ -328,7 +328,7 @@ extern int opal_get_sensor_data(u32 sensor_hndl, u32 *sensor_data);
|
||||
extern int opal_get_sensor_data_u64(u32 sensor_hndl, u64 *sensor_data);
|
||||
|
||||
struct rtc_time;
|
||||
extern unsigned long opal_get_boot_time(void);
|
||||
extern time64_t opal_get_boot_time(void);
|
||||
extern void opal_nvram_init(void);
|
||||
extern void opal_flash_update_init(void);
|
||||
extern void opal_flash_update_print_message(void);
|
||||
|
Reference in New Issue
Block a user