[PATCH] drm/i915: Cancel outstanding pc8 work when shutting down the device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As part of the device quiesceing we need to disable all active timers
and delayed workers so that they do not execute after the module is
unloaded.

Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Cc: Paulo Zanoni <paulo.r.zanoni@xxxxxxxxx>
Cc: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>
---
 drivers/gpu/drm/i915/intel_display.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 683b68e..5ce1558 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -11065,6 +11065,7 @@ void intel_modeset_quiesce(struct drm_device *dev)
 
 	cancel_work_sync(&dev_priv->hotplug_work);
 	cancel_work_sync(&dev_priv->rps.work);
+	cancel_delayed_work_sync(&dev_priv->pc8.enable_work);
 
 	/* catch all required for dev_priv->wq */
 	flush_scheduled_work();
-- 
1.7.9.5

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux