Message ID | 4BBFF66D.7020206@billgatliff.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
Bill Gatliff wrote: > Maybe there are fewer places that would need wait queues than I > originally thought! At least for drivers that use the device API, > kset_find_obj() might be the only place that needs to wait until a > device or bus appears. ... and kset_register() might be the only place that calls wake_up_interruptible(). Wow. b.g.
diff --git a/init/main.c b/init/main.c index dac44a9..1461d09 100644 --- a/init/main.c +++ b/init/main.c @@ -753,7 +753,11 @@ static void __init do_initcalls(void) initcall_t *fn; for (fn = __early_initcall_end; fn < __initcall_end; fn++) +#if 1 + kthread_run(do_one_initcall, *fn, "do_initcalls"); +#else do_one_initcall(*fn); +#endif /* Make sure there is no pending stuff from the initcall sequence */ flush_scheduled_work();