Re: [RFC 1/3] Unified NMI delayed call mechanism

Andi Kleen
2010-06-18T13:09:29Z

> You generally want to pass more information along anyway, now your
> callback function needs to go look for it. Much better to pass a
> work_struct like thing around that is contained in the state it needs.

But how would you allocate the work queue in an NMI?

If it's only a single instance (like this bit) it can be always put
into a per cpu variable.

-Andi