Skip to content

Change k_clock interfaces to use timespec64

Deepa Dinamani linux-alpha lkml netdev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v1 posting 2/27 patches 13 repliesSuperseded
  3. v1 posting 1/27 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* Address review comments for change logs and coding style.
* Fix kbuild test error for alpha.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7time: Delete do_sys_setimeofday()arch/alpha/kernel/osf_sys.c include/linux/timekeeping.h kernel/compat.c +3 more+15 -220 replies
2/7time: Change posix clocks ops interfaces to use timespec64drivers/ptp/ptp_clock.c include/linux/posix-clock.h kernel/time/posix-clock.c+36 -260 replies
3/7Change k_clock clock_get() to use timespec64drivers/char/mmtimer.c include/linux/posix-timers.h include/linux/timekeeping.h +5 more+41 -340 replies
4/7Change k_clock clock_getres() to use timespec64drivers/char/mmtimer.c include/linux/posix-timers.h kernel/time/alarmtimer.c +3 more+15 -160 replies
5/7Change k_clock clock_set() to use timespec64drivers/char/mmtimer.c include/linux/posix-timers.h kernel/time/posix-clock.c +2 more+10 -120 replies
6/7Change k_clock timer_set() and timer_get() to use timespec64drivers/char/mmtimer.c include/linux/posix-timers.h kernel/time/alarmtimer.c +3 more+66 -640 replies
7/7Change k_clock nsleep() to use timespec64include/linux/hrtimer.h include/linux/posix-timers.h kernel/compat.c +5 more+42 -340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] Change k_clock interfaces to use timespec64

The series is aimed at replacing struct timespec which is not y2038 safe with y2038 safe struct timespec64 for k_clock interfaces. The series also replaces struct itimerspec which uses struct timespec internally with struct itimerspec64 for the k_clock interfaces.

The series does not change the syscall interface.
This will be done in a follow up series.

A few existing checkpatch-noted style issues, such as the 80 line character limit, have been left as-is to facilitate easier review.

Changes since v1:
* Address review comments for change logs and coding style.
* Fix kbuild test error for alpha.

Deepa Dinamani (7):
time: Delete do_sys_setimeofday()
time: Change posix clocks ops interfaces to use timespec64 Change k_clock clock_get() to use timespec64 Change k_clock clock_getres() to use timespec64 Change k_clock clock_set() to use timespec64 Change k_clock timer_set() and timer_get() to use timespec64 Change k_clock nsleep() to use timespec64

 arch/alpha/kernel/osf_sys.c    |  4 +-
 drivers/char/mmtimer.c         | 28 ++++++-------
 drivers/ptp/ptp_clock.c        | 18 ++++----
 include/linux/hrtimer.h        |  2 +-
 include/linux/posix-clock.h    | 10 ++---
 include/linux/posix-timers.h   | 20 ++++-----
 include/linux/timekeeping.h    | 20 +++------
 kernel/compat.c                | 10 +++--
 kernel/time/alarmtimer.c       | 24 +++++------
 kernel/time/hrtimer.c          | 10 +++--
 kernel/time/posix-clock.c      | 10 ++---
 kernel/time/posix-cpu-timers.c | 66 +++++++++++++++--------------
 kernel/time/posix-stubs.c      | 20 ++++++---
 kernel/time/posix-timers.c     | 95 ++++++++++++++++++++++++------------------
 kernel/time/time.c             |  4 +-
 15 files changed, 179 insertions(+), 162 deletions(-)
Signature · 9 lines
2.7.4

Cc: Richard Cochran <[email protected]>
Cc: [email protected]
Cc: [email protected]
_______________________________________________
Y2038 mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/y2038