aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2014-02-19 16:41:56 +0800
committermm <mm@FreeBSD.org>2014-02-19 16:41:56 +0800
commit231ded3e5e0d18bfea1832f788745cf8eb0452d6 (patch)
tree8d16b2f230ed2e0eb155e060a137f68f37bb227e /net-p2p
parentce45807af1a693b4e36bdfa3879cba1ddc63ab83 (diff)
downloadfreebsd-ports-gnome-231ded3e5e0d18bfea1832f788745cf8eb0452d6.tar.gz
freebsd-ports-gnome-231ded3e5e0d18bfea1832f788745cf8eb0452d6.tar.zst
freebsd-ports-gnome-231ded3e5e0d18bfea1832f788745cf8eb0452d6.zip
Fix CPU affinity of net-p2p/cpuminer port threads
Submitted by: ache@FreeBSD.org
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/cpuminer/Makefile2
-rw-r--r--net-p2p/cpuminer/files/patch-cpu-miner.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/net-p2p/cpuminer/Makefile b/net-p2p/cpuminer/Makefile
index 3cf760b2e8a5..84c01fea6ca7 100644
--- a/net-p2p/cpuminer/Makefile
+++ b/net-p2p/cpuminer/Makefile
@@ -3,7 +3,7 @@
PORTNAME= cpuminer
PORTVERSION= 2.3.2
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net-p2p math
MASTER_SITES= SF
MASTER_SITE_SUBDIR= cpuminer
diff --git a/net-p2p/cpuminer/files/patch-cpu-miner.c b/net-p2p/cpuminer/files/patch-cpu-miner.c
new file mode 100644
index 000000000000..cbd6058670f8
--- /dev/null
+++ b/net-p2p/cpuminer/files/patch-cpu-miner.c
@@ -0,0 +1,11 @@
+--- cpu-miner.c.bak 2014-02-19 09:20:56.187720557 +0100
++++ cpu-miner.c 2014-02-19 09:21:15.296719054 +0100
+@@ -75,7 +75,7 @@
+ cpuset_t set;
+ CPU_ZERO(&set);
+ CPU_SET(cpu, &set);
+- cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_CPUSET, -1, sizeof(cpuset_t), &set);
++ cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, -1, sizeof(cpuset_t), &set);
+ }
+ #else
+ static inline void drop_policy(void)