Skip to contentSkip to conversation

fastboot: Enter the initcall loop only once for all async initcalls

PATCH New Yong Wang 1 participant 1 message Sep 26, 2008

lore
Share & tools
lore

Yong Wang

author
#0 lore raw

PATCH 1/1 fastboot: Enter the initcall loop only once for all async initcalls

fastboot: Enter the initcall loop only once for all async initcalls

Only need to enter the initcall loop once for all async initcalls since they have been submitted to async work queue all together when the loop is entered for the first async initcall.

---
 init/main.c |    1 +
 1 file changed, 1 insertion(+)
init/main.c +1 -0
index 8967835..672dabf 100644
@@ -788,6 +788,7 @@ static void __init do_initcalls(void)
 #else
 			do_async_initcalls(NULL);
 #endif
+			call = __async_initcall_end - 1;
 		}
 		if (phase == 1 && call >= __async_initcall_end)
 			phase = 2;