Various cleanups I stumbled over while working on the timekeeping code.

Based on tip/timers/core.

Signed-off-by: Thomas Weißschuh (Schneider Electric) 
<[email protected]>
---
Thomas Weißschuh (Schneider Electric) (16):
      timekeeping: Rename clockid_aux_valid() to clockid_is_aux_clock()
      timekeeping: Use u32 for clock_was_set_seq
      hrtimer: Add a lockdep assertion to hrtimer_update_base()
      timer_list: Use standard 'long long' format placeholders
      timer_list: Use ktime_t over nanoseconds
      selftests: add clock-helpers.h
      selftests: timers: Use clock_name() and constants from clock-helpers.h
      selftests: timers: nanosleep: Drop output alignment
      selftests: timers: nanosleep: Explicitly list the tested clocks
      selftests: timers: nanosleep: Reuse kselftest error numbers
      selftests: timers: nanosleep: Move all single clock tests out of the loop 
in main()
      selftests: timers: nanosleep: Report each test separately
      selftests: timers: nsleep-lat: Use NSEC_PER_MSEC define for unreasonable 
latency
      selftests: timers: nsleep-lat: Explicitly list the tested clocks
      selftests: timers: nsleep-lat: Reuse kselftest error numbers
      selftests: timers: nsleep-lat: Check all calls to clock_nanosleep() and 
clock_gettime()

 include/linux/hrtimer_bases.h                      |   2 +-
 include/linux/posix-timers.h                       |   2 +-
 include/linux/timekeeper_internal.h                |   2 +-
 include/linux/timekeeping.h                        |   2 +-
 kernel/time/hrtimer.c                              |   2 +
 kernel/time/timekeeping.c                          |   7 +-
 kernel/time/timer_list.c                           |  65 +++++-----
 tools/testing/selftests/clock-helpers.h            |  76 ++++++++++++
 tools/testing/selftests/timers/adjtick.c           |   5 +-
 .../testing/selftests/timers/alarmtimer-suspend.c  |  36 +-----
 .../testing/selftests/timers/inconsistency-check.c |  38 +-----
 tools/testing/selftests/timers/leap-a-day.c        |   3 +-
 tools/testing/selftests/timers/mqueue-lat.c        |   3 +-
 tools/testing/selftests/timers/nanosleep.c         | 136 ++++++++-------------
 tools/testing/selftests/timers/nsleep-lat.c        | 100 ++++++---------
 tools/testing/selftests/timers/posix_timers.c      |  33 ++---
 tools/testing/selftests/timers/raw_skew.c          |   3 +-
 tools/testing/selftests/timers/set-2038.c          |   3 +-
 tools/testing/selftests/timers/set-timer-lat.c     |  41 +------
 tools/testing/selftests/timers/valid-adjtimex.c    |   4 +-
 20 files changed, 242 insertions(+), 321 deletions(-)
---
base-commit: ecc330e3096173f433659aa64ab3674d0d48440e
change-id: 20260730-auxclock-nanosleep-prep-0316e89e6ac2

Best regards,
--  
Thomas Weißschuh (Schneider Electric) <[email protected]>


Reply via email to