diff --git a/qdf/inc/qdf_time.h b/qdf/inc/qdf_time.h index 148e0234a9..97cc43d5dc 100644 --- a/qdf/inc/qdf_time.h +++ b/qdf/inc/qdf_time.h @@ -81,6 +81,21 @@ static inline qdf_time_t qdf_get_system_uptime(void) return __qdf_get_system_uptime(); } +/** + * qdf_get_bootbased_boottime_ns() - Get the bootbased time in nanoseconds + * + * qdf_get_bootbased_boottime_ns() function returns the number of nanoseconds + * that have elapsed since the system was booted. It also includes the time when + * system was suspended. + * + * Return: + * The time since system booted in nanoseconds + */ +static inline s64 qdf_get_bootbased_boottime_ns(void) +{ + return ktime_get_boot_ns(); +} + /** * qdf_get_system_timestamp - Return current timestamp *