[igt-dev] [PATCH] overlay: Rename Power into GPU Power

Emmanuel Gil Peyrot linkmauve at linkmauve.fr
Sat Feb 13 18:17:55 UTC 2021


intel_gpu_top did the same change in
48b42f08255a45f58780b81766b25ab09a1cb43c, which makes it more
understandable to newbies (at least to me).

Signed-off-by: Emmanuel Gil Peyrot <linkmauve at linkmauve.fr>
---
 overlay/overlay.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/overlay/overlay.c b/overlay/overlay.c
index fdc62091..220cf7d5 100644
--- a/overlay/overlay.c
+++ b/overlay/overlay.c
@@ -700,12 +700,12 @@ static void show_gpu_freq(struct overlay_context *ctx, struct overlay_gpu_freq *
 	if (has_power) {
 		cairo_set_source_rgba(ctx->cr, 1, 1, 1, 1);
 
-		sprintf(buf, "Power: %llumW", (long long unsigned)gf->power.gpu.power_mW);
+		sprintf(buf, "GPU Power: %llumW", (long long unsigned)gf->power.gpu.power_mW);
 		cairo_move_to(ctx->cr, PAD, y);
 		cairo_show_text(ctx->cr, buf);
 		y += 14;
 
-		sprintf(buf, "Package: %llumW", (long long unsigned)gf->power.pkg.power_mW);
+		sprintf(buf, "Package Power: %llumW", (long long unsigned)gf->power.pkg.power_mW);
 		cairo_move_to(ctx->cr, PAD, y);
 		cairo_show_text(ctx->cr, buf);
 		y += 14;
-- 
2.30.1



More information about the igt-dev mailing list