mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 23:37:54 +00:00
commit
59261a8f1d
@ -6658,8 +6658,8 @@ static void noop_thread_enable(struct thr_info __maybe_unused *thr)
|
|||||||
#define noop_flush_work noop_reinit_device
|
#define noop_flush_work noop_reinit_device
|
||||||
#define noop_queue_full noop_get_stats
|
#define noop_queue_full noop_get_stats
|
||||||
|
|
||||||
/* Fill missing driver api functions with noops */
|
/* Fill missing driver drv functions with noops */
|
||||||
void fill_device_api(struct cgpu_info *cgpu)
|
void fill_device_drv(struct cgpu_info *cgpu)
|
||||||
{
|
{
|
||||||
struct device_drv *drv = cgpu->drv;
|
struct device_drv *drv = cgpu->drv;
|
||||||
|
|
||||||
@ -6713,7 +6713,7 @@ void enable_device(struct cgpu_info *cgpu)
|
|||||||
gpu_threads += cgpu->threads;
|
gpu_threads += cgpu->threads;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
fill_device_api(cgpu);
|
fill_device_drv(cgpu);
|
||||||
|
|
||||||
rwlock_init(&cgpu->qlock);
|
rwlock_init(&cgpu->qlock);
|
||||||
cgpu->queued_work = NULL;
|
cgpu->queued_work = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user