diff options
| author | Mario Limonciello <[email protected]> | 2023-08-10 10:32:01 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-15 22:08:30 +0000 |
| commit | 9366c2e87d08b88332a363adc537962ba3840fd9 (patch) | |
| tree | e9d3640932f2d6426042f0070c53d9acd581f6f4 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
| parent | drm/amd: Show both power attributes for vega20 (diff) | |
| download | kernel-9366c2e87d08b88332a363adc537962ba3840fd9.tar.gz kernel-9366c2e87d08b88332a363adc537962ba3840fd9.zip | |
drm/amd: Rename AMDGPU_PP_SENSOR_GPU_POWER
Use the clearer name `AMDGPU_PP_SENSOR_GPU_AVG_POWER` instead.
Signed-off-by: Mario Limonciello <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 631c5ab3f7dc..99f4df133ed3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c @@ -1019,7 +1019,7 @@ int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) case AMDGPU_INFO_SENSOR_GPU_AVG_POWER: /* get average GPU power */ if (amdgpu_dpm_read_sensor(adev, - AMDGPU_PP_SENSOR_GPU_POWER, + AMDGPU_PP_SENSOR_GPU_AVG_POWER, (void *)&ui32, &ui32_size)) { return -EINVAL; } |
