diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h index 5dd9daae9eef..8c96a4caa715 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | |||
@@ -270,6 +270,8 @@ struct amdgpu_dpm_funcs { | |||
270 | struct amdgpu_ps *cps, | 270 | struct amdgpu_ps *cps, |
271 | struct amdgpu_ps *rps, | 271 | struct amdgpu_ps *rps, |
272 | bool *equal); | 272 | bool *equal); |
273 | int (*read_sensor)(struct amdgpu_device *adev, int idx, void *value, | ||
274 | int *size); | ||
273 | 275 | ||
274 | struct amd_vce_state* (*get_vce_clock_state)(struct amdgpu_device *adev, unsigned idx); | 276 | struct amd_vce_state* (*get_vce_clock_state)(struct amdgpu_device *adev, unsigned idx); |
275 | int (*reset_power_profile_state)(struct amdgpu_device *adev, | 277 | int (*reset_power_profile_state)(struct amdgpu_device *adev, |
@@ -293,7 +295,7 @@ struct amdgpu_dpm_funcs { | |||
293 | #define amdgpu_dpm_read_sensor(adev, idx, value, size) \ | 295 | #define amdgpu_dpm_read_sensor(adev, idx, value, size) \ |
294 | ((adev)->pp_enabled ? \ | 296 | ((adev)->pp_enabled ? \ |
295 | (adev)->powerplay.pp_funcs->read_sensor(adev->powerplay.pp_handle, (idx), (value), (size)) : \ | 297 | (adev)->powerplay.pp_funcs->read_sensor(adev->powerplay.pp_handle, (idx), (value), (size)) : \ |
296 | -EINVAL) | 298 | (adev)->pm.funcs->read_sensor((adev), (idx), (value), (size))) |
297 | 299 | ||
298 | #define amdgpu_dpm_get_temperature(adev) \ | 300 | #define amdgpu_dpm_get_temperature(adev) \ |
299 | ((adev)->pp_enabled ? \ | 301 | ((adev)->pp_enabled ? \ |