• Arnd Bergmann's avatar
    ipw2x00: track time using boottime · 3cade2f3
    Arnd Bergmann authored
    The ipw2x00 driver family uses get_seconds() to read the current time
    for various purposes. This function is deprecated because of the 32-bit
    time_t overflow, and it can cause unexpected behavior when the time
    changes due to settimeofday() calls or leap second updates.
    
    In many cases, we want to use monotonic time instead, however ipw2x00
    explicitly tracks the time spent in suspend, so this changes the
    driver over to use ktime_get_boottime_seconds(), which is slightly
    slower, but not used in a fastpath here.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarStanislav Yakovlev <stas.yakovlev@gmail.com>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    3cade2f3
ipw2100.h 40.1 KB