Skip to content

Android Alarm Driver Cleanups (for staging-next/3.5)

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4android-alarm: Convert ALARM_ELAPSED_REALTIME to use CLOCK_BOOTTIMEdrivers/staging/android/alarm-dev.c drivers/staging/android/alarm.c drivers/staging/android/android_alarm.h+22 -580 replies
2/4alarmtimer: Provide accessor to alarmtimer rtc deviceinclude/linux/alarmtimer.h kernel/time/alarmtimer.c+5 -20 replies
3/4android-alarm: Rework alarm-dev.c to use upstreamed alarmtimersdrivers/staging/android/alarm-dev.c+98 -101 reply
4/4android-alarm: Remove unused android alarm in-kernel interfacesdrivers/staging/android/Kconfig drivers/staging/android/Makefile drivers/staging/android/alarm.c +1 more+2 -6450 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/4] Android Alarm Driver Cleanups (for staging-next/3.5)

This patch-set moves the Android alarm driver in staging to use the upstreamed CLOCK_BOOTTIME and alarmtimer interfaces, allowing us to greatly shrink the alarm driver.

The Google Android team has been using these patches in its AOSP tree for a little while without any reported issues.

The only gotcha is that I needed to make one alarmtimer interface non-static in order to support the android alarm driver. This sort of is a grey area for the staging tree, but I'm the author of the upstreamed alarmtimer code, and Thomas (cc'ed) had no objection to this patch going in via the staging tree, instead of -tip so this should be ok (and much simpler then dealing with cross-maintainer dependencies).

Greg: Would you mind applying this set to staging-next for 3.5?

thanks
-john

CC Colin Cross <[email protected]>
CC Thomas Gleixner <[email protected]>
CC Greg KH <[email protected]>
CC Android Kernel Team <[email protected]>

John Stultz (4):
android-alarm: Convert ALARM_ELAPSED_REALTIME to use CLOCK_BOOTTIME
alarmtimer: Provide accessor to alarmtimer rtc device
android-alarm: Rework alarm-dev.c to use upstreamed alarmtimers
android-alarm: Remove unused android alarm in-kernel interfaces

 drivers/staging/android/Kconfig         |   21 +-
 drivers/staging/android/Makefile        |    1 -
 drivers/staging/android/alarm-dev.c     |  111 +++++-
 drivers/staging/android/alarm.c         |  601 -------------------------------
 drivers/staging/android/android_alarm.h |   59 ---
 include/linux/alarmtimer.h              |    3 +
 kernel/time/alarmtimer.c                |    4 +-
 7 files changed, 106 insertions(+), 694 deletions(-)
 delete mode 100644 drivers/staging/android/alarm.c
Signature · 1 line
1.7.3.2.146.gca209