Browse Source

device_drv missing drv for cpu and incorrect test

nfactor-troky
Kano 12 years ago
parent
commit
a4e95cfa42
  1. 2
      cgminer.c
  2. 1
      driver-cpu.c

2
cgminer.c

@ -5904,7 +5904,7 @@ static void *watchdog_thread(void __maybe_unused *userdata)
continue; continue;
#ifdef WANT_CPUMINE #ifdef WANT_CPUMINE
if (cgpu->drv->drv != DRIVER_CPU) if (cgpu->drv->drv == DRIVER_CPU)
continue; continue;
#endif #endif
if (cgpu->status != LIFE_WELL && (now.tv_sec - thr->last.tv_sec < WATCHDOG_SICK_TIME)) { if (cgpu->status != LIFE_WELL && (now.tv_sec - thr->last.tv_sec < WATCHDOG_SICK_TIME)) {

1
driver-cpu.c

@ -844,6 +844,7 @@ CPUSearch:
} }
struct device_drv cpu_drv = { struct device_drv cpu_drv = {
.drv = DRIVER_CPU,
.dname = "cpu", .dname = "cpu",
.name = "CPU", .name = "CPU",
.drv_detect = cpu_detect, .drv_detect = cpu_detect,

Loading…
Cancel
Save