video: tegra: dc: Optimize OS idle display client wakeup
[linux-3.10.git] / drivers / video / tegra / dc / lut.c
index 892d9f9..6e77148 100644 (file)
@@ -85,12 +85,10 @@ static int tegra_dc_update_winlut(struct tegra_dc *dc, int win_idx, int fbovr)
        struct tegra_dc_win *win = &dc->windows[win_idx];
 
        mutex_lock(&dc->lock);
-       tegra_dc_io_start(dc);
-       tegra_dc_hold_dc_out(dc);
+       tegra_dc_get(dc);
 
        if (!dc->enabled) {
-               tegra_dc_release_dc_out(dc);
-               tegra_dc_io_end(dc);
+               tegra_dc_put(dc);
                mutex_unlock(&dc->lock);
                return -EFAULT;
        }
@@ -115,8 +113,7 @@ static int tegra_dc_update_winlut(struct tegra_dc *dc, int win_idx, int fbovr)
        tegra_dc_update_windows(&win, 1);
        tegra_dc_sync_windows(&win, 1);
 
-       tegra_dc_release_dc_out(dc);
-       tegra_dc_io_end(dc);
+       tegra_dc_put(dc);
        return 0;
 }