diff options
Diffstat (limited to 'backport/compat/backport-4.18.c')
-rw-r--r-- | backport/compat/backport-4.18.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backport/compat/backport-4.18.c b/backport/compat/backport-4.18.c new file mode 100644 index 00000000..c47fabe5 --- /dev/null +++ b/backport/compat/backport-4.18.c @@ -0,0 +1,11 @@ +/* + * Copyright (C) 2018 Intel Corporation + */ + +#include <linux/hrtimer.h> + +time64_t ktime_get_boottime_seconds(void) +{ + return ktime_divns(ktime_get_boottime(), NSEC_PER_SEC); +} +EXPORT_SYMBOL_GPL(ktime_get_boottime_seconds); |