drm/i915: Unifiy GT powersave suspend logic
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Jun 2014 15:48:52 +0000 (17:48 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Jun 2014 16:24:18 +0000 (18:24 +0200)
commit10d8d366790ff8da28c1853b2c795f3a74a4fdaa
treefd9bb13bd8c24a279f38dbf8eeb807b63e37b525
parent156c7ca08185886329113f20249446af4fb07f60
drm/i915: Unifiy GT powersave suspend logic

Jesse's patch to only quiescent our rps work and Imre's fix to address
a race with runtime pm and the forcewake reference held by the used
diverging means to address the same bug: Jesse's patch uses
flush_delayed_work while (since we want to make sure rps is set up)
while Imre's used a cancel+manuel refcount adjustment.

Unify them again by simply reusing intel_suspend_gt_powersave in
intel_disable_gt_powersave.

Cc: Imre Deak <imre.deak@intel.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c