Skip to content

Reworked RTC layer & Alarm timers

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Introduce timerlist infrastructure.include/linux/timerlist.h lib/Makefile lib/timerlist.c+153 -10 replies
2/5hrtimers: Convert hrtimers to use timerlist infrastructureinclude/linux/hrtimer.h kernel/hrtimer.c kernel/time/timer_list.c+49 -770 replies
3/5RTC: Rework RTC code to use timerlist for eventsdrivers/rtc/class.c drivers/rtc/interface.c drivers/rtc/rtc-lib.c +1 more+426 -2304 replies
4/5RTC: Remove UIE emulationdrivers/rtc/rtc-dev.c include/linux/rtc.h+0 -1162 replies
5/5Introduce Alarm (hybrid) timersinclude/linux/alarmtimer.h include/linux/posix-timers.h include/linux/time.h +2 more+692 -10 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlessandro ZummoJohn Stultz
SeriesA-b
1/5
2/5
3/5
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Reworked RTC layer & Alarm timers

So this patchset has gotten minimal feedback, so I wanted to send it out again for another chance at feedback and consideration for partial inclusion.

The first 4 patches rework the generic RTC code adding a abstracted timerlist layer which allows the kernel to multiplex multiple event on a single RTC device. These patches haven't changed much since mid-october, so I'd like to start pushing for them to be queued for testing to be included in 2.6.38.

Alessandro: Unless you object, I'll likely push these changes upstream through Thomas. If you'd prefer to be the path, please let me know.

The last patch is the Android-inspired alarm timers infrastructure. This is still in development, and I'd really like to get Arve's input as well as other android dev's input so we can try to make sure the proposed interface will suffice for Android.

For now I've also dropped the dynamic clockid and direct RTC posix clock interface patches, as Richard's dynamic clock device code is still in-progress. I'll revisit the that interface later once Richard's code is more settled.

CC Arve Hjønnevåg <[email protected]>
CC Thomas Gleixner <[email protected]>
CC Alessandro Zummo <[email protected]>
CC Richard Cochran <[email protected]>

John Stultz (5):
Introduce timerlist infrastructure.
hrtimers: Convert hrtimers to use timerlist infrastructure
RTC: Rework RTC code to use timerlist for events
RTC: Remove UIE emulation
[RFC] Introduce Alarm (hybrid) timers

 drivers/rtc/class.c          |   13 +
 drivers/rtc/interface.c      |  574 ++++++++++++++++++++++---------------
 drivers/rtc/rtc-dev.c        |  104 -------
 drivers/rtc/rtc-lib.c        |   26 ++
 include/linux/alarmtimer.h   |   30 ++
 include/linux/hrtimer.h      |   32 +--
 include/linux/posix-timers.h |    2 +
 include/linux/rtc.h          |   51 +++-
 include/linux/time.h         |    2 +
 include/linux/timerlist.h    |   37 +++
 kernel/hrtimer.c             |   86 ++----
 kernel/time/Makefile         |    2 +-
 kernel/time/alarmtimer.c     |  657 ++++++++++++++++++++++++++++++++++++++++++
 kernel/time/timer_list.c     |    8 +-
 lib/Makefile                 |    2 +-
 lib/timerlist.c              |  115 ++++++++
 16 files changed, 1318 insertions(+), 423 deletions(-)
 create mode 100644 include/linux/alarmtimer.h
 create mode 100644 include/linux/timerlist.h
 create mode 100644 kernel/time/alarmtimer.c
 create mode 100644 lib/timerlist.c
Signature · 1 line
1.7.3.2.146.gca209