summaryrefslogtreecommitdiff
path: root/sysutils/x86info/files/patch-x86info.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/x86info/files/patch-x86info.h')
-rw-r--r--sysutils/x86info/files/patch-x86info.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/sysutils/x86info/files/patch-x86info.h b/sysutils/x86info/files/patch-x86info.h
deleted file mode 100644
index 715552105d67..000000000000
--- a/sysutils/x86info/files/patch-x86info.h
+++ /dev/null
@@ -1,34 +0,0 @@
---- x86info.h.orig 2011-09-15 15:37:57.000000000 -0700
-+++ x86info.h 2011-09-15 15:38:09.000000000 -0700
-@@ -220,6 +220,7 @@
-
- #define _GNU_SOURCE
- #define __USE_GNU
-+#ifdef __linux__
- #include <sched.h>
- #include <sys/types.h>
- #include <unistd.h>
-@@ -233,5 +234,23 @@
- sched_setaffinity(getpid(), sizeof(set), &set);
- }
- }
-+#elif defined(__FreeBSD__)
-+#include <sys/types.h>
-+#include <sys/param.h>
-+#include <sys/cpuset.h>
-+static inline void bind_cpu(struct cpudata *cpu)
-+{
-+ cpuset_t set;
-
-+ if (cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1,
-+ sizeof(set), &set) == 0) {
-+ CPU_ZERO(&set);
-+ CPU_SET(cpu->number, &set);
-+ cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1,
-+ sizeof(set), &set);
-+ }
-+}
-+#else
-+# error "bind_cpu() is not implemented for this platform!"
-+#endif
- #endif /* _X86INFO_H */