1. 31 7月, 2008 1 次提交
  2. 25 7月, 2008 1 次提交
    • D
      rtc: remove BKL for ioctl() · 5ad31a57
      David Brownell 提交于
      Remove implicit use of BKL in ioctl() from the RTC framework.
      
      Instead, the rtc->ops_lock is used.  That's the same lock that already
      protects the RTC operations when they're issued through the exported
      rtc_*() calls in drivers/rtc/interface.c ...  making this a bugfix, not
      just a cleanup, since both ioctl calls and set_alarm() need to update IRQ
      enable flags and that implies a common lock (which RTC drivers as a rule
      do not provide on their own).
      
      A new comment at the declaration of "struct rtc_class_ops" summarizes
      current locking rules.  It's not clear to me that the exceptions listed
      there should exist ...  if not, those are pre-existing problems which can
      be fixed in a patch that doesn't relate to BKL removal.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Jonathan Corbet <corbet@lwn.net>
      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>
      5ad31a57
  3. 21 6月, 2008 1 次提交
  4. 07 2月, 2008 1 次提交
    • D
      rtc-cmos alarm acts as oneshot · 8a0bdfd7
      David Brownell 提交于
      Start making the rtc-cmos alarm act more like a oneshot alarm by disabling
      that alarm after its IRQ fires.  (ACPI hooks are also needed.)
      
      The Linux RTC framework has previously been a bit vague in this area, but
      any other behavior is problematic and not very portable.  RTCs with full
      YYYY-MM-DD HH:MM[:SS] alarms won't have a problem here.  Only ones with
      partial match criteria, with the most visible example being the PC RTC, get
      confused.  (Because the criteria will match repeatedly.)
      
      Update comments relating to that oneshot behavior and timezone handling.
      (Timezones are another issue that's mostly visible with rtc-cmos.  That's
      because PCs often dual-boot MS-Windows, which likes its RTC to match local
      wall-clock time instead of UTC.)
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8a0bdfd7
  5. 06 12月, 2007 1 次提交
  6. 30 11月, 2007 1 次提交
  7. 17 10月, 2007 3 次提交
  8. 01 8月, 2007 1 次提交
  9. 18 7月, 2007 1 次提交
  10. 09 5月, 2007 5 次提交
  11. 13 2月, 2007 1 次提交
  12. 10 2月, 2007 1 次提交
  13. 14 12月, 2006 1 次提交
  14. 26 11月, 2006 2 次提交
  15. 22 11月, 2006 1 次提交
  16. 01 10月, 2006 3 次提交
  17. 26 6月, 2006 2 次提交
  18. 22 5月, 2006 1 次提交
  19. 02 5月, 2006 1 次提交
  20. 28 3月, 2006 1 次提交