]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 3345/1: Fix interday RTC alarms
authorUli Luckas <u.luckas@road-gmbh.de>
Wed, 22 Feb 2006 21:12:07 +0000 (21:12 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 Feb 2006 21:12:07 +0000 (21:12 +0000)
commitc84ff7aa541a112446cfb2f66ca622a832e79434
treece564f2a6909a20b5ecc86dd290c8c8386980755
parent90c78454fc8c78282f4c9d6d9c4a26a3da452bc2
[ARM] 3345/1: Fix interday RTC alarms

Patch from Uli Luckas

This is a bugfix.

The comment in arch/arm/common/rtctime.c explains it:
* FIXME: for now, we just copy the alarm time because we're lazy (and
* is therefore buggy - setting a 10am alarm at 8pm will not result in
* the alarm triggering.)

This patch adds one day to the alarm iff the alarm wrapped beyond midnight and therefore appears to be in the past.

Signed-off-by: Uli Luckas <u.luckas@road-gmbh.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/rtctime.c