This function was added in commit dbe7aa622db96b ("timekeeping: Provide y2038 safe accessor to the seconds portion of CLOCK_REALTIME") and is used by multiple realtek drivers. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/linux/timekeeping.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backport/backport-include/linux/timekeeping.h b/backport/backport-include/linux/timekeeping.h index 0b9c649a..c108645f 100644 --- a/backport/backport-include/linux/timekeeping.h +++ b/backport/backport-include/linux/timekeeping.h @@ -33,6 +33,15 @@ static inline time64_t ktime_get_seconds(void) return t.tv_sec; } + +static inline time64_t ktime_get_real_seconds(void) +{ + struct timeval tv; + + do_gettimeofday(&tv); + + return tv.tv_sec; +} #endif #endif /* __BACKPORT_TIMEKEEPING_H */ -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe backports" in