Commit 6b80592cde18df19f69ffc7579220f810f051ac3

Con Kolivas 2012-07-29T20:27:37

Sleeping on intensity decrease is broken, remove it.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-opencl.c b/driver-opencl.c
index 0bfd805..8df0b10 100644
--- a/driver-opencl.c
+++ b/driver-opencl.c
@@ -1509,8 +1509,6 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work,
 			if (gpu->gpu_us_average > dynamic_us) {
 				if (gpu->intensity > MIN_INTENSITY)
 					--gpu->intensity;
-				else
-					nmsleep(gpu->gpu_us_average - dynamic_us);
 			} else if (gpu->gpu_us_average < dynamic_us / 2) {
 				if (gpu->intensity < MAX_INTENSITY)
 					++gpu->intensity;