All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH] drm/xe/display: Use acpi_target_system_state only if ACPI_SLEEP is enabled
@ 2023-09-01 16:03 Francois Dugast
  2023-09-01 16:39 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Francois Dugast @ 2023-09-01 16:03 UTC (permalink / raw)
  To: intel-xe; +Cc: Francois Dugast

This fixes the build when ACPI_SLEEP is disabled.

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
---
 drivers/gpu/drm/xe/xe_display.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_display.c b/drivers/gpu/drm/xe/xe_display.c
index b6b547c4877c..54f52b6d702d 100644
--- a/drivers/gpu/drm/xe/xe_display.c
+++ b/drivers/gpu/drm/xe/xe_display.c
@@ -331,7 +331,12 @@ static void intel_suspend_encoders(struct xe_device *xe)
 
 void xe_display_pm_suspend(struct xe_device *xe)
 {
-	bool s2idle = acpi_target_system_state() < ACPI_STATE_S3;
+	bool s2idle;
+#if IS_ENABLED(CONFIG_ACPI_SLEEP)
+	s2idle = acpi_target_system_state() < ACPI_STATE_S3;
+#else
+	s2idle = true;
+#endif
 	if (!xe->info.enable_display)
 		return;
 
@@ -360,7 +365,12 @@ void xe_display_pm_suspend(struct xe_device *xe)
 
 void xe_display_pm_suspend_late(struct xe_device *xe)
 {
-	bool s2idle = acpi_target_system_state() < ACPI_STATE_S3;
+	bool s2idle;
+#if IS_ENABLED(CONFIG_ACPI_SLEEP)
+	s2idle = acpi_target_system_state() < ACPI_STATE_S3;
+#else
+	s2idle = true;
+#endif
 	if (!xe->info.enable_display)
 		return;
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-09-05 15:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-01 16:03 [Intel-xe] [PATCH] drm/xe/display: Use acpi_target_system_state only if ACPI_SLEEP is enabled Francois Dugast
2023-09-01 16:39 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-09-01 16:39 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-09-01 16:40 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-09-01 16:47 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-09-01 16:48 ` [Intel-xe] ✗ CI.Hooks: failure " Patchwork
2023-09-01 16:48 ` [Intel-xe] ✗ CI.checksparse: warning " Patchwork
2023-09-01 17:19 ` [Intel-xe] ✓ CI.BAT: success " Patchwork
2023-09-01 20:18 ` [Intel-xe] [PATCH] " Rodrigo Vivi
2023-09-05 14:46   ` Francois Dugast
2023-09-04 10:12 ` Jani Nikula
2023-09-05 12:57   ` Francois Dugast
2023-09-05 15:39     ` Jani Nikula

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.