diff options
author | Lajos Molnar <molnar@ti.com> | 2011-06-09 17:16:22 -0500 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:05:26 -0700 |
commit | 747dbf00738ae5cde6840e812cb9adbf2d2ed186 (patch) | |
tree | 02701e6c005098e4a804116cbe7ae2b699474c8c /drivers/media/video/tiler/tcm | |
parent | 14f7685eb04b83e58a49d72ab80974ed6ee543e9 (diff) | |
download | kernel_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.c | 2 |
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 */ |