Bug 31202
Summary: | RTC: alarm time and day wrong | ||
---|---|---|---|
Product: | Timers | Reporter: | Joerg Riechardt (J.Riechardt) |
Component: | Realtime Clock | Assignee: | timers_realtime-clock |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | florian, john.stultz, maciej.rutecki, rjw |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.38 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 27352 |
Description
Joerg Riechardt
2011-03-16 13:26:04 UTC
Joerg: Mind checking that with the following patch the issue is resolved? http://git.kernel.org/?p=linux/kernel/git/tip/linux-2.6-tip.git;a=patch;h=f44f7f96a20af16f6f12e1c995576d6becf5f57b Yes, with that patch it works again. Thanks a lot! Patch : http://git.kernel.org/?p=linux/kernel/git/tip/linux-2.6-tip.git;a=patch;h=f44f7f96a20af16f6f12e1c995576d6becf5f57b Handled-By : john stultz <johnstul@us.ibm.com> (In reply to comment #2) > Yes, with that patch it works again. Thanks a lot! Joerg: Great to hear! Thanks for validating the patch! Just as a heads up though: In the future, there may be multiple RTC alarms queued by the kernel, so after a reboot only the earliest event will persist. Further, there are many cases where the RTC alarm state doesn't correctly persist across reboots. Thus, applications should not rely upon RTC alarm persistence across reboots, and should instead check the RTC and make sure it is set to the appropriate time (using persistent storage on disk) on startup. As mentioned in the patch log, we do try to preserve the old behavior where possible, but applications expecting persistent alarms across reboots will either run into trouble on some hardware, or run into trouble when there are multiplexed alarms. Fixed by commit f44f7f96a20af16f6f12e1c995576d6becf5f57b . |