diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-06-17 16:48:17 +0200 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2016-06-17 13:45:05 -0700 |
commit | 70f4f9352317ed8bc70cd7fe2bf34a3f9f7f21e3 (patch) | |
tree | 5d1c230b03ddd6cf9a3a395b41382443e9cc3eca /arch/ia64/kernel/efi.c | |
parent | 5edb56491d4812c42175980759da53388e5d86f5 (diff) | |
download | lwn-70f4f9352317ed8bc70cd7fe2bf34a3f9f7f21e3.tar.gz lwn-70f4f9352317ed8bc70cd7fe2bf34a3f9f7f21e3.zip |
ia64: efi: use timespec64 for persistent clock
We have a generic read_persistent_clock64 interface now, and can
change the ia64 implementation to provide that instead of
read_persistent_clock.
The main point of this is to avoid the use of struct timespec
in the global efi.h, which would cause build errors as soon
as we want to build a kernel without 'struct timespec' defined
on 32-bit architectures.
Aside from this, we get a little closer to removing the
__weak read_persistent_clock() definition, which relies on
converting all architectures to provide read_persistent_clock64
instead.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/efi.c')
-rw-r--r-- | arch/ia64/kernel/efi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index 3b7a60e40e8a..121295637d0d 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -236,7 +236,7 @@ STUB_GET_NEXT_HIGH_MONO_COUNT(virt, id) STUB_RESET_SYSTEM(virt, id) void -efi_gettimeofday (struct timespec *ts) +efi_gettimeofday (struct timespec64 *ts) { efi_time_t tm; @@ -245,7 +245,7 @@ efi_gettimeofday (struct timespec *ts) return; } - ts->tv_sec = mktime(tm.year, tm.month, tm.day, + ts->tv_sec = mktime64(tm.year, tm.month, tm.day, tm.hour, tm.minute, tm.second); ts->tv_nsec = tm.nanosecond; } |