|
@@ -6446,8 +6446,6 @@ int intel_connector_dpms(struct drm_connector *connector, int mode)
|
|
|
if (connector->encoder)
|
|
|
intel_encoder_dpms(to_intel_encoder(connector->encoder), mode);
|
|
|
|
|
|
- intel_modeset_check_state(connector->dev);
|
|
|
-
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -12910,8 +12908,9 @@ check_shared_dpll_state(struct drm_device *dev)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void
|
|
|
-intel_modeset_check_state(struct drm_device *dev)
|
|
|
+static void
|
|
|
+intel_modeset_check_state(struct drm_device *dev,
|
|
|
+ struct drm_atomic_state *old_state)
|
|
|
{
|
|
|
check_wm_state(dev);
|
|
|
check_connector_state(dev);
|
|
@@ -13300,10 +13299,11 @@ static int intel_atomic_commit(struct drm_device *dev,
|
|
|
|
|
|
drm_atomic_helper_wait_for_vblanks(dev, state);
|
|
|
drm_atomic_helper_cleanup_planes(dev, state);
|
|
|
- drm_atomic_state_free(state);
|
|
|
|
|
|
if (any_ms)
|
|
|
- intel_modeset_check_state(dev);
|
|
|
+ intel_modeset_check_state(dev, state);
|
|
|
+
|
|
|
+ drm_atomic_state_free(state);
|
|
|
|
|
|
return 0;
|
|
|
}
|