Simplify stop_machine
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 28 Jul 2008 17:16:28 +0000 (12:16 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 28 Jul 2008 02:16:29 +0000 (12:16 +1000)
commitffdb5976c47609c862917d4c186ecbb5706d2dda
tree7a8485260922290080094adc25f3cbebd4ad506b
parent5c2aed622571ac7c3c6ec182d6d3c318e4b45c8b
Simplify stop_machine

stop_machine creates a kthread which creates kernel threads.  We can
create those threads directly and simplify things a little.  Some care
must be taken with CPU hotunplug, which has special needs, but that code
seems more robust than it was in the past.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
include/linux/stop_machine.h
kernel/cpu.c
kernel/stop_machine.c