From 6cfeef5a2c7f14a100fae385ee220df7b0a5cf5d Mon Sep 17 00:00:00 2001 From: Joe Narlo Date: Tue, 3 Dec 2024 14:13:27 -0600 Subject: [PATCH] SWDEV-502330 [AMD-SMI][Unified Header] Convert struct to typedef struct Change struct to a typedef struct Signed-off-by: Joe Narlo Change-Id: I6f3b22a5219c0db0aab2c308b71213ae75334476 [ROCm/amdsmi commit: 547db10384999420e1ae1297e025d8204f13d4a2] --- projects/amdsmi/include/amd_smi/amdsmi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/amdsmi/include/amd_smi/amdsmi.h b/projects/amdsmi/include/amd_smi/amdsmi.h index 1b17643ef9..4db08619b3 100644 --- a/projects/amdsmi/include/amd_smi/amdsmi.h +++ b/projects/amdsmi/include/amd_smi/amdsmi.h @@ -1415,7 +1415,7 @@ typedef struct { /** * @brief The following structures hold the gpu statistics for a device. */ -struct amdsmi_gpu_xcp_metrics_t { +typedef struct { /* Utilization Instantaneous (%) */ uint32_t gfx_busy_inst[AMDSMI_MAX_NUM_XCC]; uint16_t jpeg_busy[AMDSMI_MAX_NUM_JPEG]; @@ -1423,7 +1423,7 @@ struct amdsmi_gpu_xcp_metrics_t { /* Utilization Accumulated (%) */ uint64_t gfx_busy_acc[AMDSMI_MAX_NUM_XCC]; -}; +} amdsmi_gpu_xcp_metrics_t; typedef struct { @@ -1622,7 +1622,7 @@ typedef struct { uint16_t num_partition; /* XCP (Graphic Cluster Partitions) metrics stats */ - struct amdsmi_gpu_xcp_metrics_t xcp_stats[AMDSMI_MAX_NUM_XCP]; + amdsmi_gpu_xcp_metrics_t xcp_stats[AMDSMI_MAX_NUM_XCP]; /* PCIE other end recovery counter */ uint32_t pcie_lc_perf_other_end_recovery;