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

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

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>
---
Changes in v2:
- Rebase on tip/timers/core.
- +To Cassio.
- Link to v1: https://patch.msgid.link/20260903-time-time64-to-tm-v1-0-660be972adfc@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: 0359ecff58853a491dd0f09792fea8e87235ae06
change-id: 20260831-time-time64-to-tm-960ac8bcd71f

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


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

end of thread, other threads:[~2026-11-23  8:12 UTC | newest]

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

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