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

task: fix includes for tsc

This commit is contained in:
Steffen Vogel 2018-12-02 02:49:53 +01:00
parent cb157965c2
commit ba6815af1b
2 changed files with 4 additions and 4 deletions

View file

@ -26,8 +26,6 @@
#include <stdio.h>
#include <stdint.h>
#include <villas/tsc.h>
#include <time.h>
#ifdef __cplusplus
@ -49,6 +47,10 @@ extern "C" {
#error "Platform not supported"
#endif
#if PERIODIC_TASK_IMPL == RDTSC
#include <villas/tsc.h>
#endif
struct task {
int clock; /**< CLOCK_{MONOTONIC,REALTIME} */

View file

@ -30,8 +30,6 @@
#if PERIODIC_TASK_IMPL == TIMERFD
#include <sys/timerfd.h>
#elif PERIODIC_TASK_IMPL == RDTSC
#include <villas/tsc.h>
#endif
int task_init(struct task *t, double rate, int clock)