Browse Source

Merge commit 'dfbf189' into multiproc

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

+ 0 - 7
driver-cpu.c

@@ -210,7 +210,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
 
@@ -780,11 +779,6 @@ static void cpu_detect()
 	}
 }
 
-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);
@@ -860,7 +854,6 @@ struct device_api cpu_api = {
 	.dname = "cpu",
 	.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,