1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-01 10:59:55 +00:00

Fix CPU affinity of net-p2p/cpuminer port threads

Submitted by:	ache@FreeBSD.org
This commit is contained in:
Martin Matuska 2014-02-19 08:41:56 +00:00
parent 863b8bcb83
commit c116e8213f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345023
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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)