Commit 1ee3c708 authored by Hongzhan Chen's avatar Hongzhan Chen Committed by Jan Kiszka
Browse files

cobalt/clock: dovetail: provide backend code to CLOCK_HOST_REALTIME

Signed-off-by: default avatarHongzhan Chen <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent b6f66693
......@@ -7,6 +7,7 @@
#include <cobalt/uapi/kernel/types.h>
#include <cobalt/kernel/assert.h>
#include <linux/ktime.h>
struct timespec64;
......@@ -52,7 +53,7 @@ static inline const char *pipeline_clock_name(void)
static inline int pipeline_get_host_time(struct timespec64 *tp)
/* Convert ktime_get_real_fast_ns() to timespec. */
*tp = ktime_to_timespec64(ktime_get_real_fast_ns());
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment