]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
stop_machine: add ALL_CPUS option
authorJason Baron <jbaron@redhat.com>
Thu, 28 Feb 2008 16:33:03 +0000 (11:33 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 28 Jul 2008 02:16:28 +0000 (12:16 +1000)
commit5c2aed622571ac7c3c6ec182d6d3c318e4b45c8b
tree0a3b422b16cd0725eebbe5047fd5482583279d8a
parent15bba37d62351749c3915add81f673b256952ee1
stop_machine: add ALL_CPUS option

-allow stop_mahcine_run() to call a function on all cpus. Calling
 stop_machine_run() with a 'ALL_CPUS' invokes this new behavior.
 stop_machine_run() proceeds as normal until the calling cpu has
 invoked 'fn'. Then, we tell all the other cpus to call 'fn'.

Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
CC: Adrian Bunk <bunk@stusta.de>
CC: Andi Kleen <andi@firstfloor.org>
CC: Alexey Dobriyan <adobriyan@gmail.com>
CC: Christoph Hellwig <hch@infradead.org>
CC: mingo@elte.hu
CC: akpm@osdl.org
include/linux/stop_machine.h
kernel/stop_machine.c