summaryrefslogtreecommitdiff
path: root/package/rt-tests/patches/patch-src_cyclictest_cyclictest_c
blob: 47bd5e43d8319f10395cf331af4851a2285eefaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- rt-tests-bddffd32c9483318fe72d02183981bdcf006d9dc.orig/src/cyclictest/cyclictest.c	2016-07-17 14:52:11.000000000 +0200
+++ rt-tests-bddffd32c9483318fe72d02183981bdcf006d9dc/src/cyclictest/cyclictest.c	2016-07-17 15:05:20.879904986 +0200
@@ -59,27 +59,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
 #define CPU_SET(cpu, cpusetp)