Enabling RC6 implies setting a graphics context.  Make sure we do that
only after the ring has been enabled, otherwise our ring commands will
hang.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
                drm_helper_resume_force_mode(dev);
        }
 
+       /* Clock gating state */
+       intel_enable_clock_gating(dev);
+
        intel_opregion_init(dev);
 
        dev_priv->modeset_on_lid = 0;
 
                I915_WRITE (IMR,  dev_priv->saveIMR);
        }
 
-       /* Clock gating state */
-       intel_enable_clock_gating(dev);
-
        if (IS_IRONLAKE_M(dev)) {
                ironlake_enable_drps(dev);
                intel_init_emon(dev);