Report thread out before it starts to avoid being flagged as sick when waiting for...
authorCon Kolivas <kernel@kolivas.org>
Thu, 23 Feb 2012 06:52:01 +0000 (17:52 +1100)
committerCon Kolivas <kernel@kolivas.org>
Thu, 23 Feb 2012 06:52:01 +0000 (17:52 +1100)
cgminer.c

index 6a79ccc..8a2c613 100644 (file)
--- a/cgminer.c
+++ b/cgminer.c
@@ -3425,6 +3425,7 @@ void *miner_thread(void *userdata)
        if (api->thread_init && !api->thread_init(mythr))
                goto out;
 
+       thread_reportout(mythr);
        applog(LOG_DEBUG, "Popping ping in miner thread");
        tq_pop(mythr->q, NULL); /* Wait for a ping to start */