1. 29 3月, 2011 1 次提交
  2. 10 3月, 2011 3 次提交
    • J
      RTC: Clean out UIE icotl implementations · e428c6a2
      John Stultz 提交于
      With the generic RTC rework, the UIE mode irqs are handled
      in the generic layer, and only hardware specific ioctls
      get passed down to the rtc driver layer.
      
      So this patch removes the UIE mode ioctl handling in the rtc
      driver layer, which never get used.
      
      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>
      e428c6a2
    • 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
  3. 04 2月, 2011 1 次提交
  4. 08 11月, 2010 1 次提交
  5. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  6. 16 12月, 2009 1 次提交
  7. 09 9月, 2009 1 次提交
  8. 20 8月, 2009 1 次提交
    • A
      rtc: rtc-sh fixes · 5c9740a8
      Alessandro Zummo 提交于
      - simplifies irq set freq
      - ioctl() was duplicating functionalities of rtc-dev core
      - corrected initialization sequence
      - use platform_driver_probe
      Signed-off-by: NAlessandro Zummo <a.zummo@towertech.it>
      Cc: Angelo Castello <angelo.castello@st.com>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Cc: Jamie Lenehan <lenehan@twibble.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      5c9740a8
  9. 16 4月, 2009 1 次提交
  10. 02 4月, 2009 1 次提交
  11. 20 3月, 2009 3 次提交
  12. 06 3月, 2009 1 次提交
  13. 27 2月, 2009 1 次提交
    • M
      rtc: sh-rtc: Add Single IRQ Support · 5e084a15
      Magnus Damm 提交于
      Add support for single IRQ hardware to the sh-rtc driver.
      
      This is useful for processors with limited interrupt masking
      support such as sh7750 and sh7780. With this patch in place we
      can add logic to the intc code that merges all RTC vectors into
      a single linux interrupt with proper masking/unmasking support.
      
      Specify a single IRQ in the platform data to use this new shared
      IRQ feature. Separate Periodic/Carry/Alarm IRQs are still supported.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      5e084a15
  14. 07 1月, 2009 2 次提交
  15. 20 10月, 2008 1 次提交
  16. 17 10月, 2008 1 次提交
  17. 11 9月, 2008 1 次提交
  18. 08 5月, 2008 1 次提交
  19. 28 4月, 2008 1 次提交
  20. 19 4月, 2008 1 次提交
  21. 11 4月, 2008 1 次提交
  22. 28 1月, 2008 3 次提交
  23. 07 11月, 2007 2 次提交
  24. 21 9月, 2007 1 次提交
  25. 26 7月, 2007 1 次提交
  26. 09 5月, 2007 3 次提交
  27. 23 1月, 2007 1 次提交
  28. 12 1月, 2007 1 次提交
  29. 12 12月, 2006 2 次提交
    • J
      rtc: rtc-sh: alarm support. · 1b73e6ae
      Jamie Lenehan 提交于
      This adds alarm support for the RTC_ALM_SET, RTC_ALM_READ,
      RTC_WKALM_SET and RTC_WKALM_RD operations to rtc-sh.
      
      The only unusual part is the handling of the alarm interrupt. If you
      clear the alarm flag (AF) while the time in the RTC still matches the
      time in the alarm registers than AF is immediately re-set, and if the
      alarm interrupt (AIE) is still enabled then it re-triggers. I was
      originally getting around 20k+ interrupts generated during the second
      when the RTC and alarm registers matches.
      
      The solution I've used is to clear AIE when the alarm goes off and
      then use the carry interrupt to re-enabled it. The carry interrupt
      will check AF and re-enabled AIE if it's clear. If AF is not clear
      it'll clear it and then the check will be repeated next carry
      interrupt. This a bit in rtc structure that indicates that it's
      waiting to have AIE re-enabled so it doesn't turn it on when it
      wasn't enabled anyway.
      Signed-off-by: NJamie Lenehan <lenehan@twibble.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      1b73e6ae
    • J
      rtc: rtc-sh: fix rtc for out-by-one for the month. · a1614796
      Jamie Lenehan 提交于
      The RMONCNT register, which holds the month in the RTC, takes a value
      between 1 and 12 while the tm_mon field in the time structures takes
      a value between 0 and 11. This wasn't being taken into account in
      rtc-sh resulting in the month being out by one.
      
      eg, on my board during boot the RTC is set to:
      
        RTC is set to Thu Jul 01 09:00:00 1999
      
      but "hwclock -r" immediately after logging in was showing:
      
        Sun Aug  1 09:01:43 1999  0.000000 seconds
      Signed-off-by: NJamie Lenehan <lenehan@twibble.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      a1614796