summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/of_serial.c
diff options
context:
space:
mode:
authorDengChao <chao.deng@linaro.org>2015-11-12 21:45:47 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-13 19:59:48 -0800
commit3ac4ae4736d404c436edf3b2ecfd941368f9e247 (patch)
treed2e19b6ea8ddd077d3fb7ad6c2b749061df41faa /drivers/tty/serial/of_serial.c
parent29647c483658f1e3d2e0ec9ad64ebd23edeecdf5 (diff)
downloadop-kernel-dev-3ac4ae4736d404c436edf3b2ecfd941368f9e247.zip
op-kernel-dev-3ac4ae4736d404c436edf3b2ecfd941368f9e247.tar.gz
serial:bfin-uart:Remove 'struct timeval'
The bfin-uart code uses real time with struct timeval. This will cause problems on 32-bit architectures in 2038 when time_t overflows. Since the code just needs delta value of time, it is not necessary to record them in real time. This patch changes the code to use the monotonic time instead, replaces struct timeval and do_gettimeofday() with u64 and ktime_get_ns(). Signed-off-by: DengChao <chao.deng@linaro.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/of_serial.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud