Browse Source

fix sched_setaffinity parameter : sizeof(cpu_set_t)

Kiyoaki Matsugae 12 years ago
parent
commit
bf8bb53d28
2 changed files with 2 additions and 1 deletions
  1. 1 0
      AUTHORS
  2. 1 1
      driver-cpu.c

+ 1 - 0
AUTHORS

@@ -42,6 +42,7 @@ Josh Lehan <krellan@krellan.net>
 pontus <liquidpontus@yahoo.se>
 Tydus <Tydus@Tydus.org>
 Raulo <p987341@gmail.com>
+Kiyoaki Matsugae <matsugae.kiyoaki@gmail.com>
 Thorsten Gilling <tgilling@web.de>
 Isidoro Ghezzi <isidoro.ghezzi@icloud.com>
 capa66 <capa66@x204.com>

+ 1 - 1
driver-cpu.c

@@ -64,7 +64,7 @@ static inline void affine_to_cpu(int id, int cpu)
 
 	CPU_ZERO(&set);
 	CPU_SET(cpu, &set);
-	sched_setaffinity(0, sizeof(&set), &set);
+	sched_setaffinity(0, sizeof(set), &set);
 	applog(LOG_INFO, "Binding cpu mining thread %d to cpu %d", id, cpu);
 }
 #else