projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1a76318
)
Add YYIELD to yaffs_Scan loop
author
charles
<charles>
Thu, 8 May 2008 23:23:26 +0000
(23:23 +0000)
committer
charles
<charles>
Thu, 8 May 2008 23:23:26 +0000
(23:23 +0000)
yaffs_guts.c
patch
|
blob
|
history
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index c1a5b0ced07e7e09f40ab77e3849694278617518..223f2c130aee39693c3ebcaef5ee9516ab881816 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-12,7
+12,7
@@
*/
const char *yaffs_guts_c_version =
*/
const char *yaffs_guts_c_version =
- "$Id: yaffs_guts.c,v 1.5
5 2008-05-05 07:58:58
charles Exp $";
+ "$Id: yaffs_guts.c,v 1.5
6 2008-05-08 23:23:26
charles Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-5568,6
+5568,8
@@
static int yaffs_Scan(yaffs_Device * dev)
for (blockIterator = startIterator; !alloc_failed && blockIterator <= endIterator;
blockIterator++) {
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;
if (dev->isYaffs2) {
/* get the block to scan in the correct order */
blk = blockIndex[blockIterator].block;