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>