Messages in this thread | | | Date | Tue, 09 Mar 2010 08:21:23 +0900 | From | Tejun Heo <> | Subject | Re: [PATCH 2/4] stop_machine: reimplement using cpuhog |
| |
Hello,
On 03/09/2010 01:32 AM, Arjan van de Ven wrote: > On Tue, 9 Mar 2010 00:53:21 +0900 > Tejun Heo <tj@kernel.org> wrote: > >> Reimplement stop_machine using cpuhog. As cpuhogs are guaranteed to >> be available for all online cpus, stop_machine_create/destroy() are no >> longer necessary and removed. > > question; > stop_machine pretty much also stops interrupts (it has to, at least for > the users of stop_machine).. do cpu_hogs do this too? > > (if they don't, cpu_hogs aren't safe for some of the users of > stop_machine, like code patching etc)
That is and has always been done by stop_machine cpuhog callback stop_cpu(). Only the thread pool is changed. The logic stays the same.
Thanks.
-- tejun
| |