diff options
author | John Stultz <[email protected]> | 2012-01-05 15:21:19 -0800 |
---|---|---|
committer | John Stultz <[email protected]> | 2012-01-26 19:41:30 -0800 |
commit | bd729d72b428261f2975360e0c117d7d7a2cd6e8 (patch) | |
tree | 73ebfff880ba7d96cb5d82e0811b0476ab310c16 /net/lapb/lapb_timer.c | |
parent | a99cbf6b43a7b3b15f6139b2d9ac4ecceccd3c99 (diff) |
rtc: Avoid setting alarm to a time in the past
In some cases at boot up, the RTC alarm may be set in the past,
but still have the enabled flag on. This was causing problems,
because we would then enqueue the alarm into the timerqueue,
but it would never fire. This would clog up the timerqueue
and keep other alarms from working.
The fix is to check the alarm against the current rtc time at
boot and avoid enqueueing the alarm if it is in the past.
Reported-by: NeilBrown <[email protected]>
Tested-by: NeilBrown <[email protected]>
Tested-by: Sander Eikelenboom <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions