staging: rtlwifi: rtlwifi: use ktime_get_real_seconds() for suspend time
authorArnd Bergmann <arnd@arndb.de>
Tue, 7 Nov 2017 10:43:34 +0000 (11:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:40 +0000 (09:20 +0100)
commitf6829ad6179906da6c2f7fd4ce526f4bb2e03579
treece4cd15c13ffd2358102684fab2a0ad7fa780dbd
parent6b549e20b63421e8655f7fe3612de414ec16ee2a
staging: rtlwifi: rtlwifi: use ktime_get_real_seconds() for suspend time

do_gettimeofday() is deprecated and slower than necessary for the purpose
of reading the seconds. This changes rtl_op_suspend/resume to use
ktime_get_real_seconds() instead, which is simpler and avoids confusion
about whether it is y2038-safe or not.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/core.c
drivers/staging/rtlwifi/wifi.h