summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtlwifi/wifi.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-11-07 11:43:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-27 09:20:40 +0100
commitf6829ad6179906da6c2f7fd4ce526f4bb2e03579 (patch)
treece4cd15c13ffd2358102684fab2a0ad7fa780dbd /drivers/staging/rtlwifi/wifi.h
parent6b549e20b63421e8655f7fe3612de414ec16ee2a (diff)
downloadop-kernel-dev-f6829ad6179906da6c2f7fd4ce526f4bb2e03579.zip
op-kernel-dev-f6829ad6179906da6c2f7fd4ce526f4bb2e03579.tar.gz
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>
Diffstat (limited to 'drivers/staging/rtlwifi/wifi.h')
-rw-r--r--drivers/staging/rtlwifi/wifi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtlwifi/wifi.h b/drivers/staging/rtlwifi/wifi.h
index eb91c13..ca0243f 100644
--- a/drivers/staging/rtlwifi/wifi.h
+++ b/drivers/staging/rtlwifi/wifi.h
@@ -1670,7 +1670,7 @@ struct rtl_hal {
bool enter_pnp_sleep;
bool wake_from_pnp_sleep;
bool wow_enabled;
- __kernel_time_t last_suspend_sec;
+ time64_t last_suspend_sec;
u32 wowlan_fwsize;
u8 *wowlan_firmware;
OpenPOWER on IntegriCloud