Commit 98636675 authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

cobalt/clock: drop xnclock_get_host_time()

No point in abstracting xnclock_get_host_time() and actually
counter-intuitive since it refers to the host-managed wallclock time,
not to any Xenomai-controlled clock device. Fix the single in-tree
user and drop this call.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent ac7b7fe7
Pipeline #5568 passed with stage
in 31 minutes and 12 seconds
......@@ -330,8 +330,6 @@ static inline xnticks_t xnclock_read_realtime(struct xnclock *clock)
unsigned long long xnclock_divrem_billion(unsigned long long value,
unsigned long *rem);
xnticks_t xnclock_get_host_time(void);
void xnclock_init_proc(void);
......@@ -348,12 +348,6 @@ void xnclock_adjust(struct xnclock *clock, xnsticks_t delta)
xnticks_t xnclock_get_host_time(void)
return ktime_to_ns(ktime_get_real());
xnticks_t xnclock_core_read_monotonic(void)
return xnclock_core_ticks_to_ns(xnclock_core_read_raw());
......@@ -853,7 +853,7 @@ int xntimer_grab_hardware(void)
nkclock.wallclock_offset =
xnclock_get_host_time() - xnclock_read_monotonic(&nkclock);
ktime_to_ns(ktime_get_real()) - xnclock_read_monotonic(&nkclock);
ret = xntimer_setup_ipi();
if (ret)
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