diff options
| author | Alex Deucher <[email protected]> | 2021-03-10 03:58:47 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-03-10 21:23:26 +0000 |
| commit | a5cb3c1a36376c25cd25fd3e99918dc48ac420bb (patch) | |
| tree | 52e01541eaac81b3d426bb9764ec0a4372b2afe5 /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
| parent | drm/radeon: fix AGP dependency (diff) | |
| download | kernel-a5cb3c1a36376c25cd25fd3e99918dc48ac420bb.tar.gz kernel-a5cb3c1a36376c25cd25fd3e99918dc48ac420bb.zip | |
drm/amdgpu: fix S0ix handling when the CONFIG_AMD_PMC=m
Need to check the module variant as well.
Acked-by: Prike Liang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c index 36a741d63ddc..2e9b16fb3fcd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c @@ -903,7 +903,7 @@ void amdgpu_acpi_fini(struct amdgpu_device *adev) */ bool amdgpu_acpi_is_s0ix_supported(struct amdgpu_device *adev) { -#if defined(CONFIG_AMD_PMC) +#if defined(CONFIG_AMD_PMC) || defined(CONFIG_AMD_PMC_MODULE) if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) { if (adev->flags & AMD_IS_APU) return true; |
