|
|
@@ -241,7 +241,11 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce)
|
|
|
if (!fdDev)
|
|
|
return false;
|
|
|
|
|
|
- mutex_lock(&bitforce->device_mutex);
|
|
|
+ /* It is not critical getting temperature so don't get stuck if we
|
|
|
+ * can't grab the mutex here */
|
|
|
+ if (mutex_trylock(&bitforce->device_mutex))
|
|
|
+ return false;
|
|
|
+
|
|
|
BFwrite(fdDev, "ZLX", 3);
|
|
|
BFgets(pdevbuf, sizeof(pdevbuf), fdDev);
|
|
|
mutex_unlock(&bitforce->device_mutex);
|