Messages in this thread | | | Date | Fri, 22 Feb 2008 10:46:28 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH 2/2] make work have a static address in do_boot_cpu() |
| |
* Glauber Costa <glommer@gmail.com> wrote:
> > Looks way overkill. Doesn't something like:
> > > struct create_idle create_idle = { > > > - .work = __WORK_INITIALIZER(create_idle.work, do_fork_idle), > > > .cpu = cpu, > > > .done = COMPLETION_INITIALIZER_ONSTACK(create_idle.done), > > > }; > > > + INIT_WORK(&create_idle.work, do_fork_idle); > > > > work? > > Indeed. > > I missed the static lock_class_key definition inside INIT_WORK macro. > It does the job neatly.
could you resend the updated patch?
Ingo
| |