summaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches/002-conditional_sched_affinity.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-23 17:56:28 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-23 17:56:28 +0000
commitaa725129e840e596bbbf43b80fed6194a0dfbc72 (patch)
tree0578b4c71aab8f3d979d3181a922382acf050816 /toolchain/uClibc/patches/002-conditional_sched_affinity.patch
parentaea8cdc96da2e917d66a3ec59fe3b94f424bc570 (diff)
clean up uclibc patch/config version handling a bit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14994 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/uClibc/patches/002-conditional_sched_affinity.patch')
-rw-r--r--toolchain/uClibc/patches/002-conditional_sched_affinity.patch51
1 files changed, 0 insertions, 51 deletions
diff --git a/toolchain/uClibc/patches/002-conditional_sched_affinity.patch b/toolchain/uClibc/patches/002-conditional_sched_affinity.patch
deleted file mode 100644
index dfd5bc9d1..000000000
--- a/toolchain/uClibc/patches/002-conditional_sched_affinity.patch
+++ /dev/null
@@ -1,51 +0,0 @@
---- a/libc/sysdeps/linux/common/sched_getaffinity.c
-+++ b/libc/sysdeps/linux/common/sched_getaffinity.c
-@@ -29,6 +29,7 @@
- #include <sys/param.h>
- #include <sys/types.h>
-
-+#ifdef __NR_sched_getaffinity
- libc_hidden_proto(memset)
-
- #define __NR___syscall_sched_getaffinity __NR_sched_getaffinity
-@@ -48,5 +49,15 @@ int sched_getaffinity(pid_t pid, size_t
- }
- return res;
- }
-+#else
-+/*
-+int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *cpuset)
-+{
-+ __set_errno(ENOSYS);
-+ return -1;
-+}
-+*/
- #endif
- #endif
-+
-+#endif
---- a/libc/sysdeps/linux/common/sched_setaffinity.c
-+++ b/libc/sysdeps/linux/common/sched_setaffinity.c
-@@ -31,6 +31,7 @@
- #include <sys/types.h>
- #include <alloca.h>
-
-+#ifdef __NR_sched_setaffinity
- libc_hidden_proto(getpid)
-
- #define __NR___syscall_sched_setaffinity __NR_sched_setaffinity
-@@ -74,5 +75,14 @@ int sched_setaffinity(pid_t pid, size_t
-
- return INLINE_SYSCALL (sched_setaffinity, 3, pid, cpusetsize, cpuset);
- }
-+#else
-+/*
-+int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
-+{
-+ __set_errno(ENOSYS);
-+ return -1;
-+}
-+*/
-+#endif
- #endif
- #endif