Browse Source

cpu: Move `cpus` variable to driver-cpu

Luke Dashjr 5 years ago
parent
commit
4a5f8013b4
3 changed files with 2 additions and 2 deletions
  1. 2 0
      driver-cpu.c
  2. 0 1
      driver-opencl.c
  3. 0 1
      miner.c

+ 2 - 0
driver-cpu.c

@@ -43,6 +43,8 @@
 
 BFG_REGISTER_DRIVER(cpu_drv)
 
+struct cgpu_info *cpus;
+
 #if defined(__linux) && defined(CPU_ZERO)  /* Linux specific policy and affinity management */
 #include <sched.h>
 static inline void drop_policy(void)

+ 0 - 1
driver-opencl.c

@@ -770,7 +770,6 @@ char *print_ndevs_and_exit(int *ndevs)
 
 
 struct cgpu_info gpus[MAX_GPUDEVICES]; /* Maximum number apparently possible */
-struct cgpu_info *cpus;
 
 
 

+ 0 - 1
miner.c

@@ -3386,7 +3386,6 @@ static int total_lines;
 #ifdef HAVE_OPENCL
 struct cgpu_info gpus[MAX_GPUDEVICES]; /* Maximum number apparently possible */
 #endif
-struct cgpu_info *cpus;
 
 bool _bfg_console_cancel_disabled;
 int _bfg_console_prev_cancelstate;