video: tegra: dc: remove bandwidth efficiency
Venkata (Muni) Anda [Thu, 22 Mar 2012 01:40:45 +0000 (18:40 -0700)]
Remove the efficiency factor in the bandwidth calculation.
Clock API will take care off setting the right clock based factoring the
efficiency.

Change-Id: I2b549197778b5afaf1aab3cc87a84debb08172e8
Reviewed-on: http://git-master/r/91659
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/103682
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/video/tegra/dc/dc.c

index 6809946..7fe9819 100644 (file)
@@ -1013,11 +1013,6 @@ static unsigned long tegra_dc_calc_win_bandwidth(struct tegra_dc *dc,
        ret = dc->mode.pclk / 1000UL * bpp / 8 * (win_use_v_filter(dc, w) ? 2 : 1)
                * dfixed_trunc(w->w) / w->out_w *
                (WIN_IS_TILED(w) ? tiled_windows_bw_multiplier : 1);
-       /*
-        * Assuming ~35% efficiency: i.e. if we calculate we need 70MBps, we
-        * will request 200MBps from EMC.
-        */
-       ret = ret * 29 / 10;
 
        return ret;
 }