[SWDEV-513651] Sync Unified And Linux Header (#98)

Signed-off-by: Joseph Narlo <joseph.narlo@amd.com>

[ROCm/amdsmi commit: dc4a16da6f]
Tá an tiomantas seo le fáil i:
Narlo, Joseph údaraithe agus GitHub tiomanta 2025-02-06 22:25:50 -06:00
1 tuismitheoir e8a8122111
tiomantas c26da62fc7
14 comhad athraithe
+161 -154

Níor tháinig aon chomhaid le do chuardach

+3
Féach ar an gComhad
@@ -656,6 +656,7 @@ It is not supported on virtual machine guest
Input parameters:
* `processor_handle` device which to query
* `sensor_ind` optional argument that defaults to 0
Output: Dictionary with fields
@@ -684,6 +685,8 @@ try:
else:
for device in devices:
power_measure = amdsmi_get_power_info(device)
# Example with using sensor_ind
# power_measure = amdsmi_get_power_info(device, 0)
print(power_measure['current_socket_power'])
print(power_measure['average_socket_power'])
print(power_measure['gfx_voltage'])