video: tegra: dc: Optimize OS idle display client wakeup
[linux-3.10.git] / drivers / video / tegra / dc / window.c
index 161138a..6aa55cf 100644 (file)
@@ -257,8 +257,9 @@ int tegra_dc_sync_windows(struct tegra_dc_win *windows[], int n)
                ret = wait_event_interruptible_timeout(windows[0]->dc->wq,
                        tegra_dc_windows_are_clean(windows, n),
                        HZ);
-       /* tegra_dc_io_start() done in update_windows */
-       tegra_dc_io_end(windows[0]->dc);
+
+       /* tegra_dc_hold_dc_out() called in update_windows */
+       tegra_dc_release_dc_out(windows[0]->dc);
        return ret;
 }
 EXPORT_SYMBOL(tegra_dc_sync_windows);
@@ -379,7 +380,6 @@ int tegra_dc_update_windows(struct tegra_dc_win *windows[], int n)
                return -EFAULT;
        }
 
-       tegra_dc_io_start(dc);
        tegra_dc_hold_dc_out(dc);
 
        if (no_vsync)
@@ -586,8 +586,7 @@ int tegra_dc_update_windows(struct tegra_dc_win *windows[], int n)
 
        tegra_dc_writel(dc, update_mask, DC_CMD_STATE_CONTROL);
 
-       tegra_dc_release_dc_out(dc);
-       /* tegra_dc_io_end() is called in tegra_dc_sync_windows() */
+       /* tegra_dc_release_dc_out() is called in tegra_dc_sync_windows() */
        mutex_unlock(&dc->lock);
        if (dc->out->flags & TEGRA_DC_OUT_ONE_SHOT_MODE)
                mutex_unlock(&dc->one_shot_lock);