1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

do not delay initial timer expiration

This commit is contained in:
Steffen Vogel 2015-10-14 09:55:06 +02:00
parent 75edd21a49
commit 314e08550a
3 changed files with 3 additions and 3 deletions

View file

@ -209,7 +209,7 @@ int gtfpga_open(struct node *n)
struct itimerspec its = {
.it_interval = time_from_double(1 / g->rate),
.it_value = { 1, 0 }
.it_value = { 0, 1 }
};
ret = timerfd_settime(g->fd_irq, 0, &its, NULL);
if (ret)

View file

@ -151,7 +151,7 @@ int path_start(struct path *p)
if (p->rate) {
struct itimerspec its = {
.it_interval = time_from_double(1 / p->rate),
.it_value = { 1, 0 }
.it_value = { 0, 1 }
};
p->tfd = timerfd_create(CLOCK_REALTIME, 0);

View file

@ -42,7 +42,7 @@ int main(int argc, char *argv[])
/* Setup timer */
struct itimerspec its = {
.it_interval = time_from_double(1 / rate),
.it_value = { 1, 0 }
.it_value = { 0, 1 }
};
int tfd = timerfd_create(CLOCK_REALTIME, 0);