staging: android: Replace timeval with timespec64
commit353fdf17060b15d1d857899cd3ed9d5db4818acf
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Sun, 26 Oct 2014 13:50:16 +0000 (26 19:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2014 08:15:03 +0000 (28 16:15 +0800)
treec8761607b1ae06b0c3bb7e38bd8879a58f1dc19d
parentac611dc60fc0cc050344861668f916c191f4b6cd
staging: android: Replace timeval with timespec64

'timeval' is used to print timestamps in seconds and millisecond.

32-bit systems using 'struct timeval' will break in the year 2038,
So we have to replace that code with more appropriate types.

This patch changes the android driver to use timespec64.
Since this is a staging driver and the output is only used for a
debugfs file, it is fine to slightly change the output and
use nanoseconds instead. ktime_to_timespec64, is used which will return
seconds and nanoseconds.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/sync_debug.c