aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h
diff options
context:
space:
mode:
authorHuang Rui <[email protected]>2017-01-05 11:17:13 +0000
committerAlex Deucher <[email protected]>2017-01-27 16:13:07 +0000
commita8503b15ab770967c13bc61ae8a2216165c9760a (patch)
tree4a23665a714a7ae5c090570155043be41ff0bf68 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h
parentdrm/amdgpu: introduce an interface to get clock gating status dynamically (diff)
downloadkernel-a8503b15ab770967c13bc61ae8a2216165c9760a.tar.gz
kernel-a8503b15ab770967c13bc61ae8a2216165c9760a.zip
drm/amdgpu: add parse clock gating state
Suggested-by: Felix Kuehling <[email protected]> Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Cc: William Lewis <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h
index 5fd7734f15ca..c19c4d138751 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h
@@ -24,6 +24,12 @@
#ifndef __AMDGPU_PM_H__
#define __AMDGPU_PM_H__
+struct cg_flag_name
+{
+ u32 flag;
+ const char *name;
+};
+
int amdgpu_pm_sysfs_init(struct amdgpu_device *adev);
void amdgpu_pm_sysfs_fini(struct amdgpu_device *adev);
void amdgpu_pm_print_power_states(struct amdgpu_device *adev);