aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLajos Molnar <molnar@ti.com>2011-06-09 18:16:22 -0400
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:19:04 -0400
commit5528785e770e9d5960631b1d752c7d462b1892d5 (patch)
tree73e8dfedeeb8ce8492c3cbf8a0b7104235272e00
parent53a38170c2d3adabe594443f99d473a4056cfbc3 (diff)
OMAP: TILER: TCM-SITA: Fix bug in 1D area allocation
TCM-SiTA allocated 1 page more than necessary for every 1D area allocation. This is now fixed. Signed-off-by: Lajos Molnar <molnar@ti.com>
-rw-r--r--drivers/media/video/tiler/tcm/tcm-sita.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/tiler/tcm/tcm-sita.c b/drivers/media/video/tiler/tcm/tcm-sita.c
index 71b921308bb..d0784c6fa6f 100644
--- a/drivers/media/video/tiler/tcm/tcm-sita.c
+++ b/drivers/media/video/tiler/tcm/tcm-sita.c
@@ -685,6 +685,8 @@ static s32 scan_r2l_b2t_one_dim(struct tcm *tcm, u32 num_slots,
685 } else { 685 } else {
686 /* count consecutive free slots */ 686 /* count consecutive free slots */
687 found++; 687 found++;
688 if (found == num_slots)
689 break;
688 } 690 }
689 691
690 /* move to the left */ 692 /* move to the left */