aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tiler/tcm
diff options
context:
space:
mode:
authorLajos Molnar <molnar@ti.com>2011-06-09 17:16:22 -0500
committerColin Cross <ccross@android.com>2011-06-14 09:05:26 -0700
commit747dbf00738ae5cde6840e812cb9adbf2d2ed186 (patch)
tree02701e6c005098e4a804116cbe7ae2b699474c8c /drivers/media/video/tiler/tcm
parent14f7685eb04b83e58a49d72ab80974ed6ee543e9 (diff)
downloadkernel_samsung_tuna-747dbf00738ae5cde6840e812cb9adbf2d2ed186.zip
kernel_samsung_tuna-747dbf00738ae5cde6840e812cb9adbf2d2ed186.tar.gz
kernel_samsung_tuna-747dbf00738ae5cde6840e812cb9adbf2d2ed186.tar.bz2
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. Change-Id: I8dff1cb075c0c2c305d0b7fbae976111c57040d6 Signed-off-by: Lajos Molnar <molnar@ti.com>
Diffstat (limited to 'drivers/media/video/tiler/tcm')
-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 71b9213..d0784c6 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,
} else {
/* count consecutive free slots */
found++;
+ if (found == num_slots)
+ break;
}
/* move to the left */