]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: avoid using 'timespec'
authorArnd Bergmann <arnd@arndb.de>
Tue, 29 May 2018 14:16:06 +0000 (16:16 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 18 Dec 2019 17:07:32 +0000 (18:07 +0100)
commitcc09c2cc51826109fc7e0d24aa675e0a412afeea
tree023ecedbfacf2a3891a7d02439840e4ebb95a761
parentcab50f098a88e772508fdb929a681d232af9bc6b
drm/msm: avoid using 'timespec'

The timespec structure and associated interfaces are deprecated and will
be removed in the future because of the y2038 overflow.

The use of ktime_to_timespec() in timeout_to_jiffies() does not
suffer from that overflow, but is easy to avoid by just converting
the ktime_t into jiffies directly.

Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/gpu/drm/msm/msm_drv.h