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

Signed-off-by: Joseph Narlo <joseph.narlo@amd.com>
This commit is contained in:
Narlo, Joseph
2025-02-06 22:25:50 -06:00
committed by GitHub
parent 548ed781c7
commit dc4a16da6f
14 changed files with 161 additions and 154 deletions
+3
View File
@@ -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'])