mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 00/17] timekeeping, hrtimer: Assorted cleanups
@ 2026-08-03 10:04 Thomas Weißschuh (Schneider Electric)
  2026-08-03 10:04 ` [PATCH v2 01/17] timekeeping: Rename clockid_aux_valid() to clockid_is_aux_clock() Thomas Weißschuh (Schneider Electric)
                   ` (16 more replies)
  0 siblings, 17 replies; 35+ messages in thread
From: Thomas Weißschuh (Schneider Electric) @ 2026-08-03 10:04 UTC (permalink / raw)
  To: John Stultz, Thomas Gleixner, Stephen Boyd, Miroslav Lichvar,
	Anna-Maria Behnsen, Frederic Weisbecker, Shuah Khan
  Cc: linux-kernel, linux-kselftest,
	Thomas Weißschuh (Schneider Electric)

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

Based on tip/timers/core.

Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
---
Changes in v2:
- Pick up Acks from John.
- Extend the description of "Explicitly list the tested clocks" patches.
- Drop some more custom ?SEC_PER_?SEC definitions.
- Drop SKIPPED_CLOCK_COUNT from nsleep-lat.c.
- Explicitly handle timer_delete() failure in nanosleep.c.
- Link to v1: https://patch.msgid.link/20260730-auxclock-nanosleep-prep-v1-0-cd8b61229a7c@linutronix.de

---
Thomas Weißschuh (Schneider Electric) (17):
      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: Explicitly handle timer_delete() failure
      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                              |   4 +-
 kernel/time/timekeeping.c                          |   9 +-
 kernel/time/timekeeping.h                          |   2 +-
 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  |  38 +-----
 .../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         | 145 ++++++++-------------
 tools/testing/selftests/timers/nsleep-lat.c        | 102 +++++----------
 tools/testing/selftests/timers/posix_timers.c      |  36 ++---
 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 +-
 21 files changed, 251 insertions(+), 334 deletions(-)
---
base-commit: ecc330e3096173f433659aa64ab3674d0d48440e
change-id: 20260730-auxclock-nanosleep-prep-0316e89e6ac2

Best regards,
--  
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2026-08-11 16:14 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-03 10:04 [PATCH v2 00/17] timekeeping, hrtimer: Assorted cleanups Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 01/17] timekeeping: Rename clockid_aux_valid() to clockid_is_aux_clock() Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 02/17] timekeeping: Use u32 for clock_was_set_seq Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 03/17] hrtimer: Add a lockdep assertion to hrtimer_update_base() Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 04/17] timer_list: Use standard 'long long' format placeholders Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 05/17] timer_list: Use ktime_t over nanoseconds Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 06/17] selftests: add clock-helpers.h Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] selftests: Add clock-helpers.h tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 07/17] selftests: timers: Use clock_name() and constants from clock-helpers.h Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 08/17] selftests: timers: nanosleep: Drop output alignment Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 09/17] selftests: timers: nanosleep: Explicitly list the tested clocks Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 10/17] selftests: timers: nanosleep: Reuse kselftest error numbers Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 11/17] selftests: timers: nanosleep: Move all single clock tests out of the loop in main() Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 12/17] selftests: timers: nanosleep: Explicitly handle timer_delete() failure Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 13/17] selftests: timers: nanosleep: Report each test separately Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 14/17] selftests: timers: nsleep-lat: Use NSEC_PER_MSEC define for unreasonable latency Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 15/17] selftests: timers: nsleep-lat: Explicitly list the tested clocks Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 16/17] selftests: timers: nsleep-lat: Reuse kselftest error numbers Thomas Weißschuh (Schneider Electric)
2026-08-11 16:14   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-08-03 10:04 ` [PATCH v2 17/17] selftests: timers: nsleep-lat: Check all calls to clock_nanosleep() and clock_gettime() Thomas Weißschuh (Schneider Electric)
2026-08-11 16:13   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®