1. 03 5月, 2011 1 次提交
  2. 27 4月, 2011 1 次提交
    • J
      time: Add timekeeping_inject_sleeptime · 304529b1
      John Stultz 提交于
      Some platforms cannot implement read_persistent_clock, as
      their RTC devices are only accessible when interrupts are enabled.
      This keeps them from being used by the timekeeping code on resume
      to measure the time in suspend.
      
      The RTC layer tries to work around this, by calling do_settimeofday
      on resume after irqs are reenabled to set the time properly. However,
      this only corrects CLOCK_REALTIME, and does not properly adjust
      the sleep time value. This causes btime in /proc/stat to be incorrect
      as well as making the new CLOCK_BOTTTIME inaccurate.
      
      This patch resolves the issue by introducing a new timekeeping hook
      to allow the RTC layer to inject the sleep time on resume.
      
      The code also checks to make sure that read_persistent_clock is
      nonfunctional before setting the sleep time, so that should the RTC's
      HCTOSYS option be configured in on a system that does support
      read_persistent_clock we will not increase the total_sleep_time twice.
      
      CC: Arve Hjønnevåg <arve@android.com>
      CC: Thomas Gleixner <tglx@linutronix.de>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      304529b1
  3. 21 4月, 2011 1 次提交
  4. 18 4月, 2011 1 次提交
  5. 15 4月, 2011 1 次提交
  6. 07 4月, 2011 2 次提交
  7. 04 4月, 2011 1 次提交
    • M
      rtc-mrst: Fix section types · b3b896c7
      Major Lee 提交于
      Fix the following section mismatch warning.
      
        WARNING: drivers/rtc/built-in.o(.data+0xa0): Section mismatch in reference from the variable vrtc_mrst_platform_driver to the function .init.text:vrtc_mrst_platform_probe()
        The variable vrtc_mrst_platform_driver references the function __init vrtc_mrst_platform_probe()
        If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable:
          *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      Signed-off-by: NMajor Lee <major_lee@wistron.com>
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b3b896c7
  8. 31 3月, 2011 1 次提交
  9. 30 3月, 2011 3 次提交
  10. 29 3月, 2011 1 次提交
  11. 23 3月, 2011 4 次提交
  12. 18 3月, 2011 1 次提交
  13. 17 3月, 2011 1 次提交
  14. 10 3月, 2011 9 次提交
    • M
      RTC: sa1100: Update the sa1100 RTC driver. · 416f0e80
      Marcelo Roberto Jimenez 提交于
      Since PIE interrupts are now emulated, this patch removes the previous
      code that used the hardware counters.
      
      The removal of read_callback() also fixes a wrong user space behaviour
      of this driver, which was not returning the right value to read().
      
      [john.stultz: Merge fixups]
      
      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: NMarcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      416f0e80
    • M
      RTC: Fix the cross interrupt issue on rtc-test. · a417493e
      Marcelo Roberto Jimenez 提交于
      The rtc-test driver is meant to provide a test/debug code for the RTC
      subsystem.
      
      The rtc-test driver simulates specific interrupts by echoing to the
      sys interface. Those were the update, alarm and periodic interrupts.
      
      As a side effect of the new implementation, any interrupt generated in
      the rtc-test driver would trigger the same code path in the generic
      code, and thus the distinction among interrupts gets lost.
      
      This patch preserves the previous behaviour of the rtc-test driver,
      where e.g. an update interrupt would not trigger an alarm or periodic
      interrupt, and vice-versa. In real world RTC drivers, this is not an
      issue, but in the rtc-test driver it may be interesting to distinguish
      these interrupts for testing purposes.
      
      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: NMarcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      a417493e
    • M
      RTC: Remove UIE and PIE information from the sa1100 driver proc. · 4cebe7aa
      Marcelo Roberto Jimenez 提交于
      This patch removes the UIE and PIE information that is now being
      supplied directly in the generic RTC code.
      
      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: NMarcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      4cebe7aa
    • M
      RTC: Include information about UIE and PIE in RTC driver proc. · bca8521c
      Marcelo Roberto Jimenez 提交于
      Generic RTC code is always able to provide the necessary information
      about update and periodic interrupts. This patch add such information to
      the proc interface.
      
      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: NMarcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      bca8521c
    • 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->update_irq_enable() · 51ba60c5
      John Stultz 提交于
      Now that the generic code handles UIE mode irqs via periodic
      alarm interrupts, no one calls the
      rtc_class_ops->update_irq_enable() method anymore.
      
      This patch removes the driver hooks and implementations of
      update_irq_enable if no one else is calling it.
      
      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>
      51ba60c5
    • 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
    • J
      RTC: Initialize kernel state from RTC · f44f7f96
      John Stultz 提交于
      Mark Brown pointed out a corner case: that RTC alarms should
      be allowed to be persistent across reboots if the hardware
      supported it.
      
      The rework of the generic layer to virtualize the RTC alarm
      virtualized much of the alarm handling, and removed the
      code used to read the alarm time from the hardware.
      
      Mark noted if we want the alarm to be persistent across
      reboots, we need to re-read the alarm value into the
      virtualized generic layer at boot up, so that the generic
      layer properly exposes that value.
      
      This patch restores much of the earlier removed
      rtc_read_alarm code and wires it in so that we
      set the kernel's alarm value to what we find in the
      hardware at boot time.
      
      NOTE: Not all hardware supports persistent RTC alarm state across
      system reset. rtc-cmos for example will keep the alarm time, but
      disables the AIE mode irq. Applications should not expect the RTC
      alarm to be valid after a system reset. We will preserve what
      we can, to represent the hardware state at boot, but its not
      guarenteed.
      
      Further, in the future, with multiplexed RTC alarms, the
      soonest alarm to fire may not be the one set via the /dev/rt
      ioctls. So an application may set the alarm with RTC_ALM_SET,
      but after a reset find that RTC_ALM_READ returns an earlier
      time. Again, we preserve what we can, but applications should
      not expect the RTC alarm state to persist across a system reset.
      
      Big thanks to Mark for pointing out the issue!
      Thanks also to Marcelo for helping think through the solution.
      
      CC: Mark Brown <broonie@opensource.wolfsonmicro.com>
      CC: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
      CC: Thomas Gleixner <tglx@linutronix.de>
      CC: Alessandro Zummo <a.zummo@towertech.it>
      CC: rtc-linux@googlegroups.com
      Reported-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      f44f7f96
  15. 05 3月, 2011 1 次提交
  16. 01 3月, 2011 1 次提交
  17. 26 2月, 2011 2 次提交
  18. 24 2月, 2011 2 次提交
  19. 18 2月, 2011 3 次提交
  20. 15 2月, 2011 1 次提交
  21. 12 2月, 2011 1 次提交
  22. 04 2月, 2011 1 次提交