|
|
|
@ -7934,7 +7934,7 @@ static void noop_thread_enable(struct thr_info __maybe_unused *thr)
@@ -7934,7 +7934,7 @@ static void noop_thread_enable(struct thr_info __maybe_unused *thr)
|
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void noop_detect(bool __maybe_unused hotplug) |
|
|
|
|
static void noop_detect(void) |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
#define noop_flush_work noop_reinit_device |
|
|
|
@ -8192,7 +8192,6 @@ static void *restart_mining_threads_thread(void *userdata)
@@ -8192,7 +8192,6 @@ static void *restart_mining_threads_thread(void *userdata)
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#define DRIVER_FILL_DEVICE_DRV(X) fill_device_drv(&X##_drv); |
|
|
|
|
#define DRIVER_DRV_DETECT_ALL(X) X##_drv.drv_detect(false); |
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) |
|
|
|
|
{ |
|
|
|
@ -8370,7 +8369,7 @@ int main(int argc, char *argv[])
@@ -8370,7 +8369,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
DRIVER_PARSE_COMMANDS(DRIVER_FILL_DEVICE_DRV) |
|
|
|
|
|
|
|
|
|
// this will set total_devices
|
|
|
|
|
opencl_drv.drv_detect(false); |
|
|
|
|
opencl_drv.drv_detect(); |
|
|
|
|
|
|
|
|
|
if (opt_display_devs) { |
|
|
|
|
applog(LOG_ERR, "Devices detected:"); |
|
|
|
|