diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-10-19 13:14:47 +0200 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2017-10-30 15:16:38 -0700 |
commit | 5dbf20127f8cca8588ad0b0e3e8ded587ac7afa0 (patch) | |
tree | 0fefb3f111b8fa0b85f3e47ab095ab6e0226537c /kernel/time | |
parent | 85bf19e7df2479140eff2348a4e6a9c19b5c3960 (diff) | |
download | linux-5dbf20127f8cca8588ad0b0e3e8ded587ac7afa0.tar.bz2 |
time: Move time_t based interfaces to time32.h
Interfaces based on 'struct timespec' or 'struct timeval' should no
longer be used for new code, which can use either ktime_t or 'struct
timespec64' instead.
To make this a little clearer, this moves the various helpers into a new
time32.h header. For the moment, this gets included by the normal time.h,
but we may be able to separate it entirely when most users of time32.h
are gone.
Individual helpers in the new file can get removed once they become unused
in the future.
Since the contents of time32.h look a lot like what's in time64.h, I'm
reordering them during the move to make them more similar, and to allow
a follow-up patch to redirect the 'timespec' based functions to thei
'timespec64' based counterparts on 64-bit architectures later.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[jstultz: Whitespace & checkpatch fixups]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time')
0 files changed, 0 insertions, 0 deletions