summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2020-02-07 09:46:23 -0500
committerAlex Deucher <alexander.deucher@amd.com>2020-02-11 11:51:52 -0500
commitf0f7ddfc3421e8a24cd35ed3e70b74c95899c997 (patch)
tree566042144753d5d2f41f5cd5fa9c1cbbf7ce0866 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent0a28eee97be92e7e97f78b7753a050ce66a97a1d (diff)
downloadlwn-f0f7ddfc3421e8a24cd35ed3e70b74c95899c997.tar.gz
lwn-f0f7ddfc3421e8a24cd35ed3e70b74c95899c997.zip
drm/amdgpu: add flag for runtime suspend
So we know whether we in are in runtime suspend or system suspend. Reviewed-by: Evan Quan <evan.quan@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index da3bcff61b97..7c740e3351a5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -969,6 +969,7 @@ struct amdgpu_device {
int pstate;
/* enable runtime pm on the device */
bool runpm;
+ bool in_runpm;
bool pm_sysfs_en;
bool ucode_sysfs_en;