Browse Source

Use blank_get_statline_before for GPU devices that don't support adl monitoring.

Con Kolivas 13 years ago
parent
commit
5d581cb5d7
3 changed files with 5 additions and 2 deletions
  1. 1 1
      cgminer.c
  2. 2 1
      driver-opencl.c
  3. 2 0
      miner.h

+ 1 - 1
cgminer.c

@@ -6370,7 +6370,7 @@ static void noop_reinit_device(struct cgpu_info __maybe_unused *cgpu)
 {
 }
 
-static void blank_get_statline_before(char *buf, struct cgpu_info __maybe_unused *cgpu)
+void blank_get_statline_before(char *buf, struct cgpu_info __maybe_unused *cgpu)
 {
 	tailsprintf(buf, "               | ");
 }

+ 2 - 1
driver-opencl.c

@@ -1287,7 +1287,8 @@ static void get_opencl_statline_before(char *buf, struct cgpu_info *gpu)
 		else
 			tailsprintf(buf, "        ");
 		tailsprintf(buf, "| ");
-	}
+	} else
+		gpu->drv->get_statline_before = &blank_get_statline_before;
 }
 #endif
 

+ 2 - 0
miner.h

@@ -268,6 +268,8 @@ struct gpu_adl {
 };
 #endif
 
+extern void blank_get_statline_before(char *buf, struct cgpu_info __maybe_unused *cgpu);
+
 struct api_data;
 struct thr_info;
 struct work;