OSDN Git Service

rtc: alarm: Update hrtimer if alarm at the head of the queue is reprogrammed
authorArve Hjønnevåg <arve@android.com>
Sat, 8 Jan 2011 03:00:01 +0000 (19:00 -0800)
committerBrian Swetland <swetland@google.com>
Tue, 29 Mar 2011 20:58:02 +0000 (13:58 -0700)
commitd93902f4bb16193d5ac19bc4868c77f6126c4df7
tree9d6640bf21ffdd4bf1ffe7acd9490244c57c17a0
parentde235d15fbe15883f4c7dcda92539e398ed4ff5e
rtc: alarm: Update hrtimer if alarm at the head of the queue is reprogrammed

If an alarm was restarted with a value that moved it away from the head
of a queue, the hrtimer would not be updated. This would cause unnecessary
wakeups.

Change-Id: If379f8dd92b0bdb3173bd8d057adfe0dc1d15259
Signed-off-by: Arve Hjønnevåg <arve@android.com>
drivers/rtc/alarm.c