1 --- rt-tests-bddffd32c9483318fe72d02183981bdcf006d9dc.orig/src/cyclictest/cyclictest.c 2016-07-17 14:52:11.000000000 +0200
2 +++ rt-tests-bddffd32c9483318fe72d02183981bdcf006d9dc/src/cyclictest/cyclictest.c 2016-07-17 15:05:20.879904986 +0200
4 #define sigev_notify_thread_id _sigev_un._tid
7 -#define MAKE_PROCESS_CPUCLOCK(pid, clock) \
8 - ((~(clockid_t) (pid) << 3) | (clockid_t) (clock))
9 -#define CPUCLOCK_SCHED 2
11 -static int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *req,
12 - struct timespec *rem)
14 - if (clock_id == CLOCK_THREAD_CPUTIME_ID)
16 - if (clock_id == CLOCK_PROCESS_CPUTIME_ID)
17 - clock_id = MAKE_PROCESS_CPUCLOCK (0, CPUCLOCK_SCHED);
19 - return syscall(__NR_clock_nanosleep, clock_id, flags, req, rem);
22 -int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
23 - __const cpu_set_t *__cpuset)
30 #define CPU_SET(cpu, cpusetp)