Re: [patch 1/3] fastboot: Create a "asynchronous" initlevel
From: Arjan van de Ven
Date: Fri Jul 18 2008 - 23:44:20 EST
On Fri, 18 Jul 2008 18:22:20 -0700
Daniel Walker <dwalker@xxxxxxxxxx> wrote:
> On Fri, 2008-07-18 at 15:16 -0700, Arjan van de Ven wrote:
> > +static void __init do_initcalls(void)
> > +{
> > + initcall_t *call;
> > + static DECLARE_WORK(async_work, do_async_initcalls);
> > + int phase = 0; /* 0 = levels 0 - 6, 1 = level 6a, 2 = after
> > level 6a */
> > +
> > + async_init_wq = create_singlethread_workqueue("kasyncinit");
> > +
>
> Could you spawning one thread per cpu, and queuing the work evenly?
not without loosing the ordering.....
--
If you want to reach me at my work email, use arjan@xxxxxxxxxxxxxxx
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/