1. 28 Jun, 2016 36 commits
  2. 21 Jun, 2016 1 commit
  3. 20 Jun, 2016 3 commits
    • Arnd Bergmann's avatar
      timer: Avoid using timespec · 7c71feb0
      Arnd Bergmann authored
      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: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      7c71feb0
    • Arnd Bergmann's avatar
      time: Avoid timespec in udelay_test · 4a19bd3d
      Arnd Bergmann authored
      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: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      4a19bd3d
    • Deepa Dinamani's avatar
      time: Add time64_to_tm() · e6c2682a
      Deepa Dinamani authored
      time_to_tm() takes time_t as an argument.
      time_t is not y2038 safe.
      Add time64_to_tm() that takes time64_t as an argument
      which is y2038 safe.
      The plan is to eventually replace all calls to time_to_tm()
      by time64_to_tm().
      
      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: default avatarDeepa Dinamani <deepa.kernel@gmail.com>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      e6c2682a