Commit 94222ea7 authored by Alessandro Rubini's avatar Alessandro Rubini

time: set time to 0 at init time, so delay works

parent b000a735
......@@ -81,8 +81,10 @@ int fd_time_get(struct spec_fd *fd, struct fd_time *t, struct timespec *ts)
int fd_time_init(struct spec_fd *fd)
{
/* nothing to do */
return 0;
struct timespec ts = {0,0};
/* Set the time to zero, so internal stuff resyncs */
return fd_time_set(fd, NULL, &ts);
}
void fd_time_exit(struct spec_fd *fd)
......
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