int sizeInMB = DEFAULT_SIZE_IN_MB;
+static void nandemul_yield(int n)
+{
+#ifdef __KERNEL__
+ if(n > 0) schedule_timeout(n);
+#endif
+
+}
+
+
static void nandemul_ReallyEraseBlock(int blockNumber)
{
int i;
theBlock->page[i].count[1] = 0;
theBlock->page[i].count[2] = 0;
theBlock->page[i].empty = 1;
+ nandemul_yield(2);
}
}
}
ned.block[blk]->page[pg].count[2]++;
}
+
+ if(spare || data)
+ {
+ nandemul_yield(1);
+ }
return YAFFS_OK;
}