Commit bd7fd34a authored by Aurelio Colosimo's avatar Aurelio Colosimo

gnu-linux: posix_recv_msg: if no tstamp provided by kernel, get it in user space

parent 8f8153fd
...@@ -79,13 +79,11 @@ int posix_recv_msg(int fd, void *pkt, int len, TimeInternal *t) ...@@ -79,13 +79,11 @@ int posix_recv_msg(int fd, void *pkt, int len, TimeInternal *t)
t->seconds, t->nanoseconds); t->seconds, t->nanoseconds);
} else { } else {
/* /*
* do not try to get by with recording the time here, better * get the recording time here, even though it may put a big
* to fail because the time recorded could be well after the * spike in the offset signal sent to the clock servo
* message receive, which would put a big spike in the
* offset signal sent to the clock servo
*/ */
PP_VPRINTF("no receive time stamp\n"); PP_VPRINTF("no receive time stamp, getting it in user space\n");
return 0; pp_get_tstamp(t);
} }
return ret; return 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