SWDEV-502330 [AMD-SMI][Unified Header] Convert struct to typedef struct

Change struct to a typedef struct

Signed-off-by: Joe Narlo <Joseph.Narlo@amd.com>
Change-Id: I6f3b22a5219c0db0aab2c308b71213ae75334476


[ROCm/amdsmi commit: 547db10384]
This commit is contained in:
Joe Narlo
2024-12-03 14:13:27 -06:00
committed by Maisam Arif
parent 8c9cb42a58
commit 6cfeef5a2c
+3 -3
View File
@@ -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;