am b1ef4665: Improve boot time by 0.1s by reducing a polling sleep interval
* commit 'b1ef4665e8df4abf0f3f134bf3090415fc834606':
Improve boot time by 0.1s by reducing a polling sleep interval
diff --git a/cryptfs.c b/cryptfs.c
index 355d591..ecfc3a6 100644
--- a/cryptfs.c
+++ b/cryptfs.c
@@ -1413,7 +1413,7 @@
return rc;
}
-#define DATA_PREP_TIMEOUT 200
+#define DATA_PREP_TIMEOUT 1000
static int prep_data_fs(void)
{
int i;
@@ -1431,7 +1431,7 @@
if (*p == '1') {
break;
} else {
- usleep(250000);
+ usleep(50000);
}
}
if (i == DATA_PREP_TIMEOUT) {