From ab5d1a86d9edba85b91d3af1a4ee6c2fcec38dd6 Mon Sep 17 00:00:00 2001 From: pooler Date: Tue, 18 Feb 2014 17:43:49 +0100 Subject: [PATCH] Fix CPU affinity on FreeBSD (closes #61) --- cpu-miner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu-miner.c b/cpu-miner.c index c7b4aa8..0a00e67 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -75,7 +75,7 @@ static inline void affine_to_cpu(int id, int cpu) 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)