diff options
| -rw-r--r-- | drivers/gpu/drm/radeon/radeon_atpx_handler.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c b/drivers/gpu/drm/radeon/radeon_atpx_handler.c index 6de342861202..a1321b2fa454 100644 --- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c +++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c | |||
| @@ -29,6 +29,7 @@ struct radeon_atpx { | |||
| 29 | acpi_handle handle; | 29 | acpi_handle handle; |
| 30 | struct radeon_atpx_functions functions; | 30 | struct radeon_atpx_functions functions; |
| 31 | bool is_hybrid; | 31 | bool is_hybrid; |
| 32 | bool dgpu_req_power_for_displays; | ||
| 32 | }; | 33 | }; |
| 33 | 34 | ||
| 34 | static struct radeon_atpx_priv { | 35 | static struct radeon_atpx_priv { |
| @@ -72,6 +73,10 @@ bool radeon_is_atpx_hybrid(void) { | |||
| 72 | return radeon_atpx_priv.atpx.is_hybrid; | 73 | return radeon_atpx_priv.atpx.is_hybrid; |
| 73 | } | 74 | } |
| 74 | 75 | ||
| 76 | bool radeon_atpx_dgpu_req_power_for_displays(void) { | ||
| 77 | return radeon_atpx_priv.atpx.dgpu_req_power_for_displays; | ||
| 78 | } | ||
| 79 | |||
| 75 | /** | 80 | /** |
| 76 | * radeon_atpx_call - call an ATPX method | 81 | * radeon_atpx_call - call an ATPX method |
| 77 | * | 82 | * |
