On Friday 30 October 2015 08:21:47 DengChao wrote:
The mtd tests' code recodes tests' start time and finish time by storing real time in struct timeval. This will cause problems on 32-bit architectures in 2038 when time_t overflows. Since the tests' codes just need delta value between start and end time, it is not necessary to record them in real time. This patch changes the code to use the monotonic time instead, replaces ktime_get() and ktime_t with do_gettimeofday() and struct timeval.
Signed-off-by: DengChao chao.deng@linaro.org
The patch looks great, but in the meantime Shraddha Barke has sent an identical patch that was already merged into linux-next.
Arnd