1. 14 1月, 2015 22 次提交
  2. 13 1月, 2015 13 次提交
  3. 12 1月, 2015 5 次提交
    • C
      irda: vlsi_ir: Replace timeval with ktime_t · 497ec1f2
      Chunyan Zhang 提交于
      The vlsi ir driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time of microsecond,
      and uses div_s64_rem to get what seconds & microseconds time elapsed
      for printing.
      
      This patch also changes the function 'vlsi_hard_start_xmit' to do the
      same things as the others drivers, that is passing the remaining time
      into udelay() instead of looping until enough time has passed.
      Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      497ec1f2
    • C
      irda: stir4200: Replace timeval with ktime_t · 89a07e17
      Chunyan Zhang 提交于
      The stir4200 driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time of microsecond.
      Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      89a07e17
    • C
      irda: nsc-ircc: Replace timeval with ktime_t · 4c3bd197
      Chunyan Zhang 提交于
      The nsc ircc driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time, and in this
      way it no longer needs to check for the overflow, because
      ktime_us_delta returns time difference of microsecond.
      Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4c3bd197
    • C
      irda: irda-usb: Replace timeval with ktime_t · ca98278a
      Chunyan Zhang 提交于
      The irda usb driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time, and in this
      way it no longer needs to check for the overflow, because
      ktime_us_delta returns time difference of microsecond.
      Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ca98278a
    • C
      irda: ali-ircc: Replace timeval with ktime_t · 9f61e309
      Chunyan Zhang 提交于
      The ali ircc driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time, and in this
      way it no longer needs to check for the overflow, because
      ktime_us_delta returns time difference of microsecond.
      Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9f61e309