1. 28 6月, 2016 37 次提交
  2. 21 6月, 2016 3 次提交
    • T
      Merge branch 'fortglx/4.8/time' of https://git.linaro.org/people/john.stultz/linux into timers/core · c7d6b5a2
      Thomas Gleixner 提交于
      Pull time(keeping) updates from John Stultz:
      
       - Handle the 1ns issue with the old refusing to die vsyscall machinery
       - More y2038 updates
       - Documentation fixes
       - Simplify clocksource handling
      c7d6b5a2
    • A
      timer: Avoid using timespec · 7c71feb0
      Arnd Bergmann 提交于
      The tstats_show() function prints a ktime_t variable by converting
      it to struct timespec first. The algorithm is ok, but we want to
      stop using timespec in general because of the 32-bit time_t
      overflow problem.
      
      This changes the code to use struct timespec64, without any
      functional change.
      
      Cc: Prarit Bhargava <prarit@redhat.com>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@kernel.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      7c71feb0
    • A
      time: Avoid timespec in udelay_test · 4a19bd3d
      Arnd Bergmann 提交于
      udelay_test_single() uses ktime_get_ts() to get two timespec values
      and calculate the difference between them, while udelay_test_show()
      uses the same to printk() the current monotonic time.
      
      Both of these are y2038 safe on all machines, but we want to
      get rid of struct timespec anyway, so this converts the code to
      use ktime_get_ns() and ktime_get_ts64() respectively.
      
      Cc: Prarit Bhargava <prarit@redhat.com>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@kernel.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      4a19bd3d