Browse Source

cpu/opencl: Fix probe priorities to be last

Luke Dashjr 12 years ago
parent
commit
0e54936df0
2 changed files with 2 additions and 0 deletions
  1. 1 0
      driver-cpu.c
  2. 1 0
      driver-opencl.c

+ 1 - 0
driver-cpu.c

@@ -879,6 +879,7 @@ CPUSearch:
 struct device_drv cpu_drv = {
 	.dname = "cpu",
 	.name = "CPU",
+	.probe_priority = 120,
 	.supported_algos = POW_SHA256D | POW_SCRYPT,
 	.drv_detect = cpu_detect,
 	.thread_prepare = cpu_thread_prepare,

+ 1 - 0
driver-opencl.c

@@ -1769,6 +1769,7 @@ static void opencl_thread_shutdown(struct thr_info *thr)
 struct device_drv opencl_api = {
 	.dname = "opencl",
 	.name = "OCL",
+	.probe_priority = 110,
 	.supported_algos = POW_SHA256D | POW_SCRYPT,
 	.drv_detect = opencl_detect,
 	.reinit_device = reinit_opencl_device,