Skip to content

RFC Try to handle hctosys w/ rtc modules

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2time: Introduce do_first_settimeofday()include/linux/time.h kernel/time/timekeeping.c+46 -100 replies
2/2rtc: Rework hctosys so that it is called on RTC registrationdrivers/rtc/class.c drivers/rtc/hctosys.c include/linux/rtc.h+16 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2][RFC] Try to handle hctosys w/ rtc modules

Its been pointed out that the RTC hctosys functionality doesn't work well with RTC modules, which may not be loaded until after late_init().

While there have been other attempts to sovle this, this patchset is a very quick 10 minute effort to show how I'd try to resolve this. There likely are still issues here, but I'd be happy to make fixes and adjustments to ensure it works.

Feedback and comments always appreciated!

-john

Cc John Whitmore <[email protected]>
Cc Alessandro Zummo <[email protected]>
Cc Alexander Holler <[email protected]>

John Stultz (2):
time: Introduce do_first_settimeofday()
rtc: Rework hctosys so that it is called on RTC registration

 drivers/rtc/class.c       |  2 ++
 drivers/rtc/hctosys.c     | 19 +++++++----------
 include/linux/rtc.h       |  6 ++++++
 include/linux/time.h      |  2 ++
 kernel/time/timekeeping.c | 54 ++++++++++++++++++++++++++++++++++++++---------
 5 files changed, 62 insertions(+), 21 deletions(-)
Signature · 1 line
1.9.1