1. 28 Jun, 2016 30 commits
  2. 21 Jun, 2016 1 commit
  3. 20 Jun, 2016 6 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
    • Pratyush Patel's avatar
      alarmtimer: Fix comments describing structure fields · af4afb40
      Pratyush Patel authored
      Updated struct alarm and struct alarm_timer descriptions.
      
      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 avatarPratyush Patel <pratyushpatel.1995@gmail.com>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      af4afb40
    • Thomas Graziadei's avatar
      timekeeping: Fix 1ns/tick drift with GENERIC_TIME_VSYSCALL_OLD · 0209b937
      Thomas Graziadei authored
      The user notices the problem in a raw and real time drift, calling
      clock_gettime with CLOCK_REALTIME / CLOCK_MONOTONIC_RAW on a system
      with no ntp correction taking place (no ntpd or ptp stuff running).
      
      The problem is, that old_vsyscall_fixup adds an extra 1ns even though
      xtime_nsec is already held in full nsecs and the remainder in this
      case is 0. Do the rounding up buisness only if needed.
      
      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 avatarThomas Graziadei <thomas.graziadei@omicronenergy.com>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      0209b937
    • Minfei Huang's avatar
      clocksource: Make clocksource insert entry more efficient · 0fb71d34
      Minfei Huang authored
      In clocksource_enqueue(), it is unnecessary to continue looping
      the list, if we find there is an entry that the value of rating
      is smaller than the new one. It is safe to be out the loop,
      because all of entry are inserted in descending order.
      
      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 avatarMinfei Huang <mnghuan@gmail.com>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      0fb71d34
  4. 10 Jun, 2016 1 commit
  5. 09 Jun, 2016 2 commits