From: Deepak S Date: Tue, 5 Aug 2014 14:51:20 +0000 (-0700) Subject: drm/i915: Bring GPU Freq to min while suspending. X-Git-Tag: v6.6-pxa1908~22827^2~3 X-Git-Url: https://git.dujemihanovic.xyz/?a=commitdiff_plain;h=274fa1c1acdc530e124d9d835d5dd059a5330b49;p=linux.git drm/i915: Bring GPU Freq to min while suspending. We might be leaving the PGU Frequency (and thus vnn) high during the suspend. Flusing the delayed work queue should take care of this. Signed-off-by: Deepak S Signed-off-by: Rodrigo Vivi Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index dcd8d7b42552..20743bd421f9 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -4554,7 +4554,7 @@ i915_gem_suspend(struct drm_device *dev) del_timer_sync(&dev_priv->gpu_error.hangcheck_timer); cancel_delayed_work_sync(&dev_priv->mm.retire_work); - cancel_delayed_work_sync(&dev_priv->mm.idle_work); + flush_delayed_work(&dev_priv->mm.idle_work); return 0;