From e593068d2e7b570e6037879120612c8d23e82f46 Mon Sep 17 00:00:00 2001 From: Ingrid Gallardo Date: Wed, 1 Jul 2015 09:09:05 -0700 Subject: [PATCH] msm: mdss: fix typo in mdp bw calculations preventing to use comp ratio Fix typo that prevents to use the compression ratio factor to reduce the bw vote for ubwc formats. Change-Id: Ic06129a1fa0c548bda9673037748b348b8af730a Signed-off-by: Ingrid Gallardo --- drivers/video/fbdev/msm/mdss_mdp_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/msm/mdss_mdp_ctl.c b/drivers/video/fbdev/msm/mdss_mdp_ctl.c index 48939ebbd60b..7c4f09fe8d81 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c +++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c @@ -555,7 +555,7 @@ u32 apply_comp_ratio_factor(u32 quota, { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); - if (!mdata || test_bit(MDSS_QOS_OVERHEAD_FACTOR, + if (!mdata || !test_bit(MDSS_QOS_OVERHEAD_FACTOR, mdata->mdss_qos_map)) return quota;