1. 10 3月, 2011 2 次提交
    • J
      RTC: Cleanup rtc_class_ops->irq_set_freq() · 696160fe
      John Stultz 提交于
      With the generic rtc code now emulating PIE mode irqs via an
      hrtimer, no one calls the rtc_class_ops->irq_set_freq call.
      
      This patch removes the hook and deletes the driver functions
      if no one else calls them.
      
      CC: Thomas Gleixner <tglx@linutronix.de>
      CC: Alessandro Zummo <a.zummo@towertech.it>
      CC: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
      CC: rtc-linux@googlegroups.com
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      696160fe
    • J
      RTC: Cleanup rtc_class_ops->irq_set_state · 80d4bb51
      John Stultz 提交于
      With PIE mode interrupts now emulated in generic code via an hrtimer,
      no one calls rtc_class_ops->irq_set_state(), so this patch removes it
      along with driver implementations.
      
      CC: Thomas Gleixner <tglx@linutronix.de>
      CC: Alessandro Zummo <a.zummo@towertech.it>
      CC: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
      CC: rtc-linux@googlegroups.com
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      80d4bb51
  2. 14 1月, 2011 1 次提交
  3. 29 11月, 2010 1 次提交
  4. 11 8月, 2010 1 次提交
  5. 25 5月, 2010 1 次提交
  6. 22 5月, 2010 2 次提交
  7. 12 1月, 2010 1 次提交
  8. 17 12月, 2009 1 次提交
  9. 16 12月, 2009 2 次提交
  10. 30 7月, 2009 1 次提交
  11. 22 4月, 2009 1 次提交
  12. 07 1月, 2009 3 次提交
  13. 07 11月, 2008 1 次提交
  14. 20 10月, 2008 4 次提交
    • P
      x86: sysfs: kill owner field from attribute · 01e8ef11
      Parag Warudkar 提交于
      Tejun's commit 7b595756 made sysfs
      attribute->owner unnecessary.  But the field was left in the structure to
      ease the merge.  It's been over a year since that change and it is now
      time to start killing attribute->owner along with its users - one arch at
      a time!
      
      This patch is attempt #1 to get rid of attribute->owner only for
      CONFIG_X86_64 or CONFIG_X86_32 .  We will deal with other arches later on
      as and when possible - avr32 will be the next since that is something I
      can test.  Compile (make allyesconfig / make allmodconfig / custom config)
      and boot tested.
      
      akpm: the idea is that we put the declaration of sttribute.owner inside
      `#ifndef CONFIG_X86'.  But that proved to be too ambitious for now because
      new usages kept on turning up in subsystem trees.
      
      [akpm: remove the ifdef for now]
      Signed-off-by: NParag Warudkar <parag.lkml@gmail.com>
      Cc: Greg KH <greg@kroah.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Tejun Heo <htejun@gmail.com>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: David Brownell <david-b@pacbell.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>
      01e8ef11
    • A
      drivers/rtc/: use bcd2bin/bin2bcd · fe20ba70
      Adrian Bunk 提交于
      Change drivers/rtc/ to use the new bcd2bin/bin2bcd functions instead of
      the obsolete BCD_TO_BIN/BIN_TO_BCD/BCD2BIN/BIN2BCD macros.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Acked-by: NAlessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      fe20ba70
    • D
      rtc-cmos: export second NVRAM bank · c8fc40cd
      David Brownell 提交于
      Teach rtc-cmos about the second bank of registers found on most modern x86
      systems, giving access to 128 bytes more NVRAM.
      
      This version only sees that extra NVRAM when both register banks are
      provided as part of *one* PNP resource.  Since BIOS on some systems
      presents them using two IO resources, and nothing merges them, this can't
      always show all the NVRAM.  (We're supposed to be able to use PNP id
      PNP0b01 too, but BIOS tables doesn't often seem to use that particular
      option.)
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c8fc40cd
    • D
      rtc-cmos: export second NVRAM bank · bb93d802
      David Brownell 提交于
      Teach rtc-cmos about the second bank of registers found on most modern x86
      systems, giving access to 128 bytes more NVRAM.
      
      This version only sees that extra NVRAM when both register banks are
      provided as part of *one* PNP resource.  Since BIOS on some systems
      presents them using two IO resources, and nothing merges them, this can't
      always show all the NVRAM.  (We're supposed to be able to use PNP id
      PNP0b01 too, but BIOS tables doesn't often seem to use that particular
      option.)
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: torvalds@linux-foundation.org
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      bb93d802
  15. 15 10月, 2008 2 次提交
  16. 03 9月, 2008 1 次提交
  17. 30 8月, 2008 1 次提交
  18. 25 7月, 2008 3 次提交
    • D
      rtc-cmos: avoid spurious irqs · 7e2a31da
      David Brownell 提交于
      This fixes kernel http://bugzilla.kernel.org/show_bug.cgi?id=11112 (bogus
      RTC update IRQs reported) for rtc-cmos, in two ways:
      
        - When HPET is stealing the IRQs, use the first IRQ to grab
          the seconds counter which will be monitored (instead of
          using whatever was previously in that memory);
      
        - In sane IRQ handling modes, scrub out old IRQ status before
          enabling IRQs.
      
      That latter is done by tightening up IRQ handling for rtc-cmos everywhere,
      also ensuring that when HPET is used it's the only thing triggering IRQ
      reports to userspace; net object shrink.
      
      Also fix a bogus HPET message related to its RTC emulation.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Report-by: NW Unruh <unruh@physics.ubc.ca>
      Cc: Andrew Victor <avictor.za@gmail.com>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7e2a31da
    • D
      rtc-cmos: improve HPET IRQ glue · 35d3fdd5
      David Brownell 提交于
      Resolve http://bugzilla.kernel.org/show_bug.cgi?id=11051 and other bugs
      related to the way the HPET glue code in rtc-cmos was incomplete and
      inconsistent:
      
       * Switch the approach so that the basic driver code flow isn't
         changed by having HPET ... instead, just have HPET shadow the
         RTC_CONTROL irq enables and RTC_FREQ_SELECT data.  It's only
         coping with IRQ thievery, after all.
      
       * Do that consistently (!!) to avoid problems when the HPET code
         is out of sync with the real RTC intent.  Examples include:
      
         - cmos_procfs(), which now reports correct data
      
         - cmos_irq_set_state() ... also removing the previous PIE_{ON,OFF}
           ioctl support so only one code path manages "periodic" IRQs
      
         - cmos_do_shutdown() ... currently a "just in case" change.
      
         - cmos_suspend() and cmos_resume() ... also handling a bug that
           was specific to HPET's IRQ thievery, where the alarm wasn't
           disabled after waking the system
      
       * Always call that HPET code under the RTC spinlock (it doesn't do
         its own locking)
      
      Also clean up the HPET glue:
      
       * Add some comments explaining what's going on.
      
       * Switch to having just one #ifdef for the HPET glue, and inline
         functions (not #defines) to avoid some compiler warnings.
      
       * Have the probe message also report when HPET IRQs are involved
      
      This still leaves various holes in the HPET glue, like the emulated update
      IRQs being out of sync with the RTC, alarms never using day or month
      matches, and many extra IRQs (at 64 Hz).
      
      [akpm@linux-foundation.org: fix build]
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Tomas Janousek <tomi@nomi.cz>
      Cc: Bernhard Walle <bwalle@suse.de>
      Cc: Carlos R. Mafra <crmafra@ift.unesp.br>
      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>
      35d3fdd5
    • C
      rtc: remove and clarify unneeded externs · c68d07b2
      Carlos R. Mafra 提交于
      When CONFIG_HPET_EMULATE_RTC is defined the external declaration of
      hpet_rtc_interrupt is redundant due to the inclusion of hpet.h.
      
      When !CONFIG_HPET_EMULATE_RTC we make it clear that hpet_rtc_interrupt is
      not used by defining it to return zero.
      Signed-off-by: NCarlos R. Mafra <crmafra@ift.unesp.br>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c68d07b2
  19. 13 6月, 2008 1 次提交
    • S
      provide rtc_cmos platform device · 1da2e3d6
      Stas Sergeev 提交于
      Recently (around 2.6.25) I've noticed that RTC no longer works for me.  It
      turned out this is because I use pnpacpi=off kernel option to work around
      the parport_pc bugs.  I always did so, but RTC used to work fine in the
      past, and now it have regressed.
      
      The patch fixes the problem by creating the platform device for the RTC
      when PNP is disabled.  This may also help running the PNP-enabled kernel
      on an older PCs.
      Signed-off-by: NStas Sergeev <stsp@aknet.ru>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Adam Belay <ambx1@neo.rr.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1da2e3d6
  20. 29 4月, 2008 1 次提交
  21. 16 4月, 2008 1 次提交
  22. 11 4月, 2008 1 次提交
  23. 24 2月, 2008 1 次提交
  24. 07 2月, 2008 3 次提交
    • B
      rtc: add HPET RTC emulation to RTC_DRV_CMOS · 9d8af78b
      Bernhard Walle 提交于
      That patch adds the RTC emulation of the HPET timer to the new RTC_DRV_CMOS.
      The old drivers/char/rtc.ko driver had that functionality and it's important
      on new systems.
      
      [akpm@linux-foundation.org: unbreak alpha build]
      Signed-off-by: NBernhard Walle <bwalle@suse.de>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Andi Kleen <ak@suse.de>
      Cc: john stultz <johnstul@us.ibm.com>
      Cc: Robert Picco <Robert.Picco@hp.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9d8af78b
    • 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
    • D
      rtc-cmos: export nvram in sysfs · e07e232c
      David Brownell 提交于
      This makes rtc-cmos export its NVRAM, like several other RTC drivers.
      
      It still works within the limits of the current CMOS_READ/CMOS_WRITE calls,
      which don't understand how to access multiple register banks.  The primary
      impact of that limitation is that Linux can't access the uppermost 128
      bytes of NVRAM on many systems.
      
      Note that this isn't aiming to be a drop-in replacement for the legacy
      /dev/nvram support.  (Presumably that has real users, and isn't just
      getting carried forward automatically?) Userspace handles more work:
      
       - When userspace code updates NVRAM, that will need to include
         updating any platform-specific checksums that may apply.
      
       - No /proc/driver/nvram file will parse and display NVRAM data
         according to whichever boot firmware your board expects.
      
      Also minor pnp-related updates: update a comment, remove dead code.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NAlessandro Zummo <a.zummo@towertech.it>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e07e232c
  25. 05 11月, 2007 1 次提交
    • M
      rtc: ignore msb when reading back mday from alarm · 615bb29c
      Mark Lord 提交于
      I have a system here that actively relies upon RTC wake alarms, and it
      has been failing (again) for a few days when attempting to use the
      /sys/class/rtc/rtc?/wakealarm interface.
      
      The old (fixed by Linus) /proc/ interface still works, but I'd like to
      get it using the new one.
      
      This patch fixes rtc-cmos to ignore the two upper bits when reading the
      BCD mday (day of month) register from CMOS.  Some systems (eg.  mine)
      seem to have the top bit set to "1" for some reason.
      
      The older /proc/ interface ignores the upper bits, and so we should too.
      Signed-off-by: NMark Lord <mlord@pobox.com>
      Acked-by: NDavid Brownell <david-b@pacbell.net>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      615bb29c
  26. 17 10月, 2007 2 次提交