Make amdsmi_get_power_info backwards compatible
Change-Id: Ie5b4c35265827e78934caa94c142d31efce597e4
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
[ROCm/amdsmi commit: 4a3c70136f]
This commit is contained in:
1 parent
fff2d21baf
commit
633d2a8890
12 files changed
+114
-17
No files matched your search
@@ -3588,7 +3588,7 @@ amdsmi_get_gpu_process_list(amdsmi_processor_handle processor_handle, uint32_t *
|
||||
}
|
||||
|
||||
amdsmi_status_t
|
||||
amdsmi_get_power_info(amdsmi_processor_handle processor_handle, __attribute__((unused)) uint32_t sensor_ind, amdsmi_power_info_t *info) {
|
||||
amdsmi_get_power_info_v2(amdsmi_processor_handle processor_handle, __attribute__((unused)) uint32_t sensor_ind, amdsmi_power_info_t *info) {
|
||||
|
||||
AMDSMI_CHECK_INIT();
|
||||
|
||||
@@ -3628,6 +3628,11 @@ amdsmi_get_power_info(amdsmi_processor_handle processor_handle, __attribute__((u
|
||||
return status;
|
||||
}
|
||||
|
||||
amdsmi_status_t
|
||||
amdsmi_get_power_info(amdsmi_processor_handle processor_handle, amdsmi_power_info_t *info) {
|
||||
return amdsmi_get_power_info_v2(processor_handle, 0, info);
|
||||
}
|
||||
|
||||
amdsmi_status_t amdsmi_get_gpu_driver_info(amdsmi_processor_handle processor_handle,
|
||||
amdsmi_driver_info_t *info) {
|
||||
AMDSMI_CHECK_INIT();
|
||||
|
||||
Reference in new issue
Block a user