From: Heiko Carstens Date: Mon, 13 Oct 2008 21:50:10 +0000 (+0200) Subject: stop_machine: use workqueues instead of kernel threads X-Git-Tag: v2.6.28-rc1~36^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9583e55fa2b08a230c549bd1e3c0bde6c50d9cc;p=pandora-kernel.git stop_machine: use workqueues instead of kernel threads Convert stop_machine to a workqueue based approach. Instead of using kernel threads for stop_machine we now use a an rt workqueue to synchronize all cpus. This has the advantage that all needed per cpu threads are already created when stop_machine gets called. And therefore a call to stop_machine won't fail anymore. This is needed for s390 which needs a mechanism to synchronize all cpus without allocating any memory. As Rusty pointed out free_module() needs a non-failing stop_machine interface as well. As a side effect the stop_machine code gets simplified. Signed-off-by: Heiko Carstens Signed-off-by: Rusty Russell --- Reading git-diff-tree failed