Fix build.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
diff --git a/api.c b/api.c
index 76dfc57..ae7f674 100644
--- a/api.c
+++ b/api.c
@@ -1888,8 +1888,8 @@ static void pgaenable(struct io_data *io_data, __maybe_unused SOCKETTYPE c, char
pga = thr->cgpu->cgminer_id;
if (pga == dev) {
cgpu->deven = DEV_ENABLED;
- applog(LOG_DEBUG, "API: pushing ping (%d) to thread %d", ping, thr->id);
- tq_push(thr->q, &ping);
+ applog(LOG_DEBUG, "API: Pushing sem post to thread %d", thr->id);
+ cgsem_post(&thr->sem);
}
}
@@ -2157,8 +2157,8 @@ static void gpuenable(struct io_data *io_data, __maybe_unused SOCKETTYPE c, char
return;
}
gpus[id].deven = DEV_ENABLED;
- applog(LOG_DEBUG, "API: pushing ping (%d) to thread %d", ping, thr->id);
- tq_push(thr->q, &ping);
+ applog(LOG_DEBUG, "API Pushing sem post to thread %d", thr->id);
+ cgsem_post(&thr->sem);
}
}
diff --git a/driver-opencl.c b/driver-opencl.c
index 501b411..87d4291 100644
--- a/driver-opencl.c
+++ b/driver-opencl.c
@@ -44,7 +44,6 @@ extern void enable_curses(void);
extern int mining_threads;
extern double total_secs;
extern int opt_g_threads;
-extern bool ping;
extern bool opt_loginput;
extern char *opt_kernel_path;
extern int gpur_thr_id;
@@ -618,7 +617,7 @@ void pause_dynamic_threads(int gpu)
thr->pause = cgpu->dynamic;
if (!cgpu->dynamic && cgpu->deven != DEV_DISABLED)
- tq_push(thr->q, &ping);
+ cgsem_post(&thr->sem);
}
}
@@ -764,9 +763,9 @@ retry:
wlogprint("Must restart device before enabling it");
goto retry;
}
- applog(LOG_DEBUG, "Pushing ping to thread %d", thr->id);
+ applog(LOG_DEBUG, "Pushing sem post to thread %d", thr->id);
- tq_push(thr->q, &ping);
+ cgsem_post(&thr->sem);
}
goto retry;
} if (!strncasecmp(&input, "d", 1)) {
@@ -1210,7 +1209,7 @@ select_cgpu:
if (dev_from_id(thr_id) != gpu)
continue;
- tq_push(thr->q, &ping);
+ cgsem_post(&thr->sem);
}
goto select_cgpu;
diff --git a/miner.h b/miner.h
index 9708e09..c246922 100644
--- a/miner.h
+++ b/miner.h
@@ -861,7 +861,6 @@ extern cgsem_t usb_resource_sem;
#ifdef USE_BITFORCE
extern bool opt_bfl_noncerange;
#endif
-extern bool ping;
extern int swork_id;
extern pthread_rwlock_t netacc_lock;