[RESEND v2] mtd: tests: Replace timeval with ktime_t

Brian Norris computersforpeace at gmail.com
Mon Oct 26 13:24:29 PDT 2015


On Thu, Oct 22, 2015 at 08:29:54PM +0530, Shraddha Barke wrote:
> Changes the 32-bit time type timeval to the 64-bit time type
> ktime_t, since 32-bit systems using struct timeval will break in the
> year 2038. Correspondingly change do_gettimeofday() to ktime_get()
> since ktime_get returns a ktime_t, but do_gettimeofday returns a
> struct timeval.Here, ktime_get() is used instead of ktime_get_real()
> since ktime_get() uses monotonic clock.
> 
> Signed-off-by: Shraddha Barke <shraddha.6596 at gmail.com>
> Reviewed-by: Arnd Bergmann <arnd at arndb.de>

Looks OK. With luck, these tests will be moving out of the kernel and
into user space soon anyway, but that's no reason not to fix this one.

Applied to l2-mtd.git



More information about the linux-mtd mailing list