staging: android-alarm: Update hrtimer if alarm at the head of the queue is reprogrammed
authorArve Hjønnevåg <arve@android.com>
Thu, 9 Feb 2012 22:24:38 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2012 18:08:00 +0000 (10:08 -0800)
commit66c48107719b751e8ec360034bc84ee1511147e4
tree7b9196acf3a4ac5c1d2d5bb42e35fd437c7f5c68
parent58a38ff3b12ebd103e3ca2c5dea3292ffbfd0f02
staging: android-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.

CC: Arve Hjønnevåg <arve@android.com>
CC: Android Kernel Team <kernel-team@android.com>
Change-Id: If379f8dd92b0bdb3173bd8d057adfe0dc1d15259
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/alarm.c