From 599962fe715ef0fc7e5b624f6b2a326a6dfc217a Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Thu, 21 Apr 2022 15:46:51 +0800 Subject: [PATCH] ACRN:DM:VGPU: Rename thread_name for dedicated rendering thread Otherwise it will use the "acrn_dm" as the thread_name, which is not convenient to check the cpu_usage of rendering_thread. Tracked-On: #7337 Acked-by: Wang Yu Signed-off-by: Zhao Yakui --- devicemodel/hw/vdisplay_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/hw/vdisplay_sdl.c b/devicemodel/hw/vdisplay_sdl.c index 51125cb41..95b57a4d2 100644 --- a/devicemodel/hw/vdisplay_sdl.c +++ b/devicemodel/hw/vdisplay_sdl.c @@ -1090,7 +1090,7 @@ vdpy_init() pr_err("Failed to create the sdl_display_thread.\n"); return 0; } - + pthread_setname_np(vdpy.tid, "acrn_vdisplay"); count = 0; /* Wait up to 200ms so that the vdpy_sdl_display_thread is ready to * handle the 3D request