commit | 3c92d5517af8eeab81da3aee4fc14faa198bbb8b | [log] [tgz] |
---|---|---|
author | Arnd Bergmann <arnd@arndb.de> | Mon Nov 06 14:55:36 2017 +0100 |
committer | Kalle Valo <kvalo@codeaurora.org> | Wed Nov 08 14:33:05 2017 +0200 |
tree | dcd88b66e407eed762fb70148c49662561c63c35 | |
parent | 3f2a162fab15aee243178b5308bb5d1206fc4043 [diff] |
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: Kalle Valo <kvalo@codeaurora.org>