Browse Source

Bugfix: cpu: reinit_device hasn't worked since 93b284d, so just remove it entirely instead of letting it screw with thread 0

Luke Dashjr 13 years ago
parent
commit
dfbf1890b7
1 changed files with 0 additions and 7 deletions
  1. 0 7
      device-cpu.c

+ 0 - 7
device-cpu.c

@@ -147,7 +147,6 @@ enum sha256_algos opt_algo = ALGO_SSE2_32;
 enum sha256_algos opt_algo = ALGO_C;
 #endif
 bool opt_usecpu = false;
-static int cpur_thr_id;
 static bool forced_n_threads;
 #endif
 
@@ -694,11 +693,6 @@ static void cpu_detect()
 	total_devices += opt_n_threads;
 }
 
-static void reinit_cpu_device(struct cgpu_info *cpu)
-{
-	tq_push(thr_info[cpur_thr_id].q, cpu);
-}
-
 static bool cpu_thread_prepare(struct thr_info *thr)
 {
 	thread_reportin(thr);
@@ -776,7 +770,6 @@ CPUSearch:
 struct device_api cpu_api = {
 	.name = "CPU",
 	.api_detect = cpu_detect,
-	.reinit_device = reinit_cpu_device,
 	.thread_prepare = cpu_thread_prepare,
 	.can_limit_work = cpu_can_limit_work,
 	.thread_init = cpu_thread_init,