svn commit: r345023 - in head/net-p2p/cpuminer: . files

Martin Matuska mm at FreeBSD.org
Wed Feb 19 08:41:57 UTC 2014


Author: mm
Date: Wed Feb 19 08:41:56 2014
New Revision: 345023
URL: http://svnweb.freebsd.org/changeset/ports/345023
QAT: https://qat.redports.org/buildarchive/r345023/

Log:
  Fix CPU affinity of net-p2p/cpuminer port threads
  
  Submitted by:	ache at FreeBSD.org

Added:
  head/net-p2p/cpuminer/files/
  head/net-p2p/cpuminer/files/patch-cpu-miner.c   (contents, props changed)
Modified:
  head/net-p2p/cpuminer/Makefile

Modified: head/net-p2p/cpuminer/Makefile
==============================================================================
--- head/net-p2p/cpuminer/Makefile	Wed Feb 19 08:39:38 2014	(r345022)
+++ head/net-p2p/cpuminer/Makefile	Wed Feb 19 08:41:56 2014	(r345023)
@@ -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

Added: head/net-p2p/cpuminer/files/patch-cpu-miner.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/cpuminer/files/patch-cpu-miner.c	Wed Feb 19 08:41:56 2014	(r345023)
@@ -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)


More information about the svn-ports-all mailing list