Staging: fbtbt: Replace timespec with ktime_t
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>
Wed, 7 Oct 2015 20:06:55 +0000 (22:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:50:27 +0000 (10:50 +0100)
commit367e8560e8d7a62d96e9b1d644028a3816e04206
treedfa5ef5fb8e96a8001b2ae263a9da0152da7f3ce
parentf60c265159e832ae389f3ab1acf9343d9e86a19a
Staging: fbtbt: Replace timespec with ktime_t

struct timespec will overflow in year 2038, so replace it with
ktime_t. And replace functions that use struct timespec,
timespec_sub with ktime_sub. Also use monotonic time instead of real
time, by replacing getnstimeofday with ktime_get, to be more robust
against leap seconds and settimeofday() calls.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c
drivers/staging/fbtft/fbtft.h
This page took 0.0242560000000001 seconds and 5 git commands to generate.