alarmtimers: Fix time comparison
authorThomas Gleixner <tglx@linutronix.de>
Mon, 5 Dec 2011 20:20:23 +0000 (21:20 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 20:58:19 +0000 (12:58 -0800)
commitb2b3ffbcbc6fb1b98ef3cb4dd85bc1d095ac95ee
treede4c0867ec51203a1e83a4bb1bc3e1c69fa0cb09
parente0b652a1a218e863e8fcf00aee316bf618bd0c1a
alarmtimers: Fix time comparison

commit c9c024b3f3e07d087974db4c0dc46217fff3a6c0 upstream.

The expiry function compares the timer against current time and does
not expire the timer when the expiry time is >= now. That's wrong. If
the timer is set for now, then it must expire.

Make the condition expiry > now for breaking out the loop.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/time/alarmtimer.c