summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorLijo Lazar <lijo.lazar@amd.com>2021-03-16 21:14:40 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-04-09 16:46:22 -0400
commit5d89bb2d2f53b27460f77c89756597dee507cd34 (patch)
tree560ed242ec517f7c11ee9e9a51864b2d37f57021 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parenta2052839cd9fc5ee76c3ba05efbc939219b53cb4 (diff)
downloadlinux-stable-5d89bb2d2f53b27460f77c89756597dee507cd34.tar.gz
linux-stable-5d89bb2d2f53b27460f77c89756597dee507cd34.tar.bz2
linux-stable-5d89bb2d2f53b27460f77c89756597dee507cd34.zip
drm/amdgpu: Make set PG/CG state functions public
Expose PG/CG set states functions for other clients Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index ec21a71c74eb..ce13b2c8db90 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1390,6 +1390,11 @@ bool amdgpu_device_load_pci_state(struct pci_dev *pdev);
bool amdgpu_device_skip_hw_access(struct amdgpu_device *adev);
+int amdgpu_device_set_cg_state(struct amdgpu_device *adev,
+ enum amd_clockgating_state state);
+int amdgpu_device_set_pg_state(struct amdgpu_device *adev,
+ enum amd_powergating_state state);
+
#include "amdgpu_object.h"
static inline bool amdgpu_is_tmz(struct amdgpu_device *adev)