diff options
| author | Mario Limonciello <[email protected]> | 2022-01-26 03:35:09 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-02-02 23:26:30 +0000 |
| commit | 18b66ace6b3acb01b645d2fbbd571f66b2705c71 (patch) | |
| tree | e33edff0411b1cae5ea94279750f516782512a45 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amd: Warn users about potential s0ix problems (diff) | |
| download | kernel-18b66ace6b3acb01b645d2fbbd571f66b2705c71.tar.gz kernel-18b66ace6b3acb01b645d2fbbd571f66b2705c71.zip | |
drm/amd: add support to check whether the system is set to s3
This will be used to help make decisions on what to do in
misconfigured systems.
v2: squash in semicolon fix from Stephen Rothwell
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.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 65d2799f5a87..92f757c007d5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1420,9 +1420,11 @@ static inline int amdgpu_acpi_smart_shift_update(struct drm_device *dev, #endif #if defined(CONFIG_ACPI) && defined(CONFIG_SUSPEND) +bool amdgpu_acpi_is_s3_active(struct amdgpu_device *adev); bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev); #else static inline bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev) { return false; } +static inline bool amdgpu_acpi_is_s3_active(struct amdgpu_device *adev) { return false; } #endif int amdgpu_cs_find_mapping(struct amdgpu_cs_parser *parser, |
