1. 07 11月, 2008 1 次提交
  2. 31 7月, 2008 1 次提交
  3. 22 7月, 2008 1 次提交
  4. 05 7月, 2008 1 次提交
    • D
      rtc: rtc_read_alarm() handles wraparound · a01cc657
      David Brownell 提交于
      While 0e36a9a4 ("rtc: fix readback from
      /sys/class/rtc/rtc?/wakealarm") made sure that active alarms were never
      returned with invalid "wildcard" fields (negative), it can still report
      (wrongly) that the alarm triggers in the past.
      
      Example, if it's now 10am, an alarm firing at 5am will be triggered
      TOMORROW not today.  (Which may also be next month or next year...)
      
      This updates that alarm handling in three ways:
      
        * Handle alarm rollover in the common cases of RTCs that don't
          support matching on all date fields.
      
        * Skip the invalid-field logic when it's not needed.
      
        * Minor bugfix ... tm_isdst should be ignored, it's one of the
          fields Linux doesn't maintain.
      
      A warning is emitted for some of the unhandled rollover cases, but the
      possible combinations are a bit too numerous to handle every bit of
      potential hardware and firmware braindamage.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Mark Lord <lkml@rtr.ca>
      Acked-by: NAlessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a01cc657
  5. 25 1月, 2008 1 次提交
  6. 06 12月, 2007 1 次提交
  7. 30 11月, 2007 1 次提交
  8. 17 10月, 2007 3 次提交
  9. 09 5月, 2007 3 次提交
  10. 02 3月, 2007 1 次提交
  11. 26 11月, 2006 2 次提交
  12. 26 6月, 2006 1 次提交
  13. 28 3月, 2006 1 次提交