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)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 25 Apr 2012 22:24:36 +0000 (01:24 +0300)
commit83696da19a0be7d84f6551eaf2dcad2f0b3d4cd6
treed541407ab2b02c53ab196cb5ed4772dfd86123af
parent2ef92c9e0870ad0244004a355862adca2714c464
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