Commit 023c186d7dd7efaafe047b13ba2916b3176c0c96

Con Kolivas 2014-02-26T23:52:50

When not honoured, trying to set highprio seems to have the opposite effect making it a harmful choice generically.

diff --git a/cgminer.c b/cgminer.c
index d16610d..d9104f4 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4806,18 +4806,6 @@ void zero_stats(void)
 	}
 }
 
-static void set_highprio(void)
-{
-#ifndef WIN32
-	int ret = nice(-10);
-
-	if (!ret)
-		applog(LOG_DEBUG, "Unable to set thread to high priority");
-#else
-	SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);
-#endif
-}
-
 static void set_lowprio(void)
 {
 #ifndef WIN32
@@ -7213,7 +7201,6 @@ void *miner_thread(void *userdata)
 	applog(LOG_DEBUG, "Waiting on sem in miner thread");
 	cgsem_wait(&mythr->sem);
 
-	set_highprio();
 	cgpu->last_device_valid_work = time(NULL);
 	drv->hash_work(mythr);
 out: