Mercurial > yaffs-ecoscentric
changeset 214:f161e6a4bbe3
Add YYIELD to yaffs_Scan loop
| author | charles |
|---|---|
| date | Fri, 09 May 2008 00:23:26 +0100 |
| parents | e15e1a1a8718 |
| children | b08276bd7b2d |
| files | yaffs_guts.c |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -5568,6 +5568,8 @@ static int yaffs_Scan(yaffs_Device * dev for (blockIterator = startIterator; !alloc_failed && blockIterator <= endIterator; blockIterator++) { + YYIELD(); + if (dev->isYaffs2) { /* get the block to scan in the correct order */ blk = blockIndex[blockIterator].block;
