[PATCH 0/4] time: time64_to_tm() cleanups

From: Thomas Weißschuh (Schneider Electric)

Date: Thu Sep 03 2026 - 05:28:27 EST


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@xxxxxxxxxxxxx>
---
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@xxxxxxxxxxxxx>