@@ -7771,15 +7771,10 @@ static int intel_atomic_commit(struct drm_device *dev,
INIT_WORK(&state->base.commit_work, intel_atomic_commit_work);
i915_sw_fence_commit(&state->commit_ready);
- if (nonblock && state->modeset) {
+ if (state->modeset)
queue_work(dev_priv->display.wq.modeset, &state->base.commit_work);
- } else if (nonblock) {
+ else
queue_work(dev_priv->display.wq.flip, &state->base.commit_work);
- } else {
- if (state->modeset)
- flush_workqueue(dev_priv->display.wq.modeset);
- intel_atomic_commit_tail(state);
- }
return 0;
}