diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-04 11:21:24 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-04 12:18:49 +0200 |
commit | 2636ca56e509846726b792e8c7a84dbd994af7a4 (patch) | |
tree | 615541713bb0661ebdce5b3ea7d29d4b7505012b /package/rt-tests/patches/patch-src_cyclictest_cyclictest_c | |
parent | a11591ae2ae2b4b1692b7c8642277b1c68c88066 (diff) |
fix rt-test
Diffstat (limited to 'package/rt-tests/patches/patch-src_cyclictest_cyclictest_c')
-rw-r--r-- | package/rt-tests/patches/patch-src_cyclictest_cyclictest_c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/rt-tests/patches/patch-src_cyclictest_cyclictest_c b/package/rt-tests/patches/patch-src_cyclictest_cyclictest_c new file mode 100644 index 000000000..3f1dc24e5 --- /dev/null +++ b/package/rt-tests/patches/patch-src_cyclictest_cyclictest_c @@ -0,0 +1,29 @@ +--- rt-tests-3fed00ff8d2c0cdbc5ba078cbd60ce3cfcee615f.orig/src/cyclictest/cyclictest.c 2015-05-28 22:04:15.000000000 +0200 ++++ rt-tests-3fed00ff8d2c0cdbc5ba078cbd60ce3cfcee615f/src/cyclictest/cyclictest.c 2015-05-31 09:30:23.000000000 +0200 +@@ -57,26 +57,6 @@ + #define sigev_notify_thread_id _sigev_un._tid + + #ifdef __UCLIBC__ +-#define MAKE_PROCESS_CPUCLOCK(pid, clock) \ +- ((~(clockid_t) (pid) << 3) | (clockid_t) (clock)) +-#define CPUCLOCK_SCHED 2 +- +-static int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *req, +- struct timespec *rem) +-{ +- if (clock_id == CLOCK_THREAD_CPUTIME_ID) +- return -EINVAL; +- if (clock_id == CLOCK_PROCESS_CPUTIME_ID) +- clock_id = MAKE_PROCESS_CPUCLOCK (0, CPUCLOCK_SCHED); +- +- return syscall(__NR_clock_nanosleep, clock_id, flags, req, rem); +-} +- +-int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, +- __const cpu_set_t *__cpuset) +-{ +- return -EINVAL; +-} + + #undef CPU_SET + #undef CPU_ZERO |