summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorUjwal Patel <ujwalp@codeaurora.org>2013-04-30 13:25:50 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:16:44 -0700
commitaf7b6d1c3abded7a9c287c22deeba69360de4f3f (patch)
tree496df78f8e6d42f4af3e59db44d269c67cf3efc1 /drivers/video/fbdev
parentd24330e257eb04ca7d34e67756d346b9bc716360 (diff)
msm: mdss: remove 64M alignment while requesting bus bandwidth
Currently bus bandwidth update is skipped if new bandwidth request is within 64M boundary of current request. While enforcing this rule, new request is changed to 64M aligned and then compared. This results in higher bandwidth request then necessary which may lead system to higher clock rate. Fix this by removing 64M alignment to new bandwidth request. CRs-Fixed: 479711 Change-Id: Ib25afa00b6e9276146ca78a4ce9cbdf3a84288c4 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp.c b/drivers/video/fbdev/msm/mdss_mdp.c
index 4c109b836aec..ce737997a5fe 100644
--- a/drivers/video/fbdev/msm/mdss_mdp.c
+++ b/drivers/video/fbdev/msm/mdss_mdp.c
@@ -388,12 +388,11 @@ int mdss_mdp_bus_scale_set_quota(u64 ab_quota, u64 ib_quota)
bus_idx = (current_bus_idx % (num_cases - 1)) + 1;
- /* aligning to avoid performing updates for small changes */
- ab_quota = ALIGN(ab_quota, SZ_64M);
- ib_quota = ALIGN(ib_quota, SZ_64M);
-
vect = mdp_bus_scale_table.usecase[current_bus_idx].vectors;
- if ((ab_quota == vect->ab) && (ib_quota == vect->ib)) {
+
+ /* avoid performing updates for small changes */
+ if ((ALIGN(ab_quota, SZ_64M) == ALIGN(vect->ab, SZ_64M)) &&
+ (ALIGN(ib_quota, SZ_64M) == ALIGN(vect->ib, SZ_64M))) {
pr_debug("skip bus scaling, no change in vectors\n");
return 0;
}