Linux RTC
 help / color / mirror / Atom feed
* [PATCH 0/4] time: time64_to_tm() cleanups
@ 2026-09-03  7:46 Thomas Weißschuh (Schneider Electric)
  2026-09-03  7:46 ` [PATCH 1/4] time: Avoid 64-bit by 64-bit division in time64_to_tm() Thomas Weißschuh (Schneider Electric)
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Thomas Weißschuh (Schneider Electric) @ 2026-09-03  7:46 UTC (permalink / raw)
  To: John Stultz, Thomas Gleixner, Stephen Boyd, Miroslav Lichvar,
	Alexandre Belloni
  Cc: linux-kernel, linux-rtc, Thomas Weißschuh

Speed up time64_to_tm() and its tests a bit.
Also simplify drop the custom implementation of rtc_time64_to_tm()
and the test for it.

The series could be split. Then patches 1 and 2 go through timekeeping
while 3 and 4 go through RTC.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Thomas Weißschuh (Schneider Electric) (4):
      time: Avoid 64-bit by 64-bit division in time64_to_tm()
      time: test: Avoid unnecessary divisions in time64_to_tm() test
      rtc: lib: Implement time64_to_tm() in terms of time64_to_tm()
      rtc: test: Remove test_rtc_lib.c

 drivers/rtc/Kconfig        |   9 ----
 drivers/rtc/Makefile       |   2 -
 drivers/rtc/lib.c          | 117 ++++++---------------------------------------
 drivers/rtc/test_rtc_lib.c | 106 ----------------------------------------
 kernel/time/time_test.c    |   6 +--
 kernel/time/timeconv.c     |   4 +-
 6 files changed, 20 insertions(+), 224 deletions(-)
---
base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
change-id: 20260831-time-time64-to-tm-960ac8bcd71f

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


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

end of thread, other threads:[~2026-09-03  7:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03  7:46 [PATCH 0/4] time: time64_to_tm() cleanups Thomas Weißschuh (Schneider Electric)
2026-09-03  7:46 ` [PATCH 1/4] time: Avoid 64-bit by 64-bit division in time64_to_tm() Thomas Weißschuh (Schneider Electric)
2026-09-03  7:50   ` sashiko-bot
2026-09-03  7:46 ` [PATCH 2/4] time: test: Avoid unnecessary divisions in time64_to_tm() test Thomas Weißschuh (Schneider Electric)
2026-09-03  7:50   ` sashiko-bot
2026-09-03  7:46 ` [PATCH 3/4] rtc: lib: Implement time64_to_tm() in terms of time64_to_tm() Thomas Weißschuh (Schneider Electric)
2026-09-03  7:55   ` sashiko-bot
2026-09-03  7:46 ` [PATCH 4/4] rtc: test: Remove test_rtc_lib.c Thomas Weißschuh (Schneider Electric)
2026-09-03  7:54   ` sashiko-bot

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