Skip to content

Commit

Permalink
Fix CPU affinity on FreeBSD (closes #61)
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Feb 18, 2014
1 parent 3f9d872 commit ab5d1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ab5d1a8

Please sign in to comment.