diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-02-13 18:30:12 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-02-13 18:30:12 +0000 |
commit | f280af038a947b67694780f999e06e05d11de1cf (patch) | |
tree | 4a135406c76376c7e9a013034144985a619a7580 /xen/common/stop_machine.c | |
parent | 5dfa26a76cefd4220962ac1dfbf9028081c0ac5a (diff) | |
download | xen-f280af038a947b67694780f999e06e05d11de1cf.tar.gz xen-f280af038a947b67694780f999e06e05d11de1cf.tar.bz2 xen-f280af038a947b67694780f999e06e05d11de1cf.zip |
xen: Clean up SMP/hotplug headers and implementation a bit.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/stop_machine.c')
-rw-r--r-- | xen/common/stop_machine.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/xen/common/stop_machine.c b/xen/common/stop_machine.c index b109167ef7..1411b9f197 100644 --- a/xen/common/stop_machine.c +++ b/xen/common/stop_machine.c @@ -22,12 +22,13 @@ #include <xen/config.h> #include <xen/init.h> +#include <xen/sched.h> #include <xen/spinlock.h> -#include <asm/smp.h> -#include <asm/current.h> #include <xen/softirq.h> -#include <asm/processor.h> #include <xen/errno.h> +#include <xen/smp.h> +#include <asm/current.h> +#include <asm/processor.h> enum stopmachine_state { STOPMACHINE_START, @@ -61,7 +62,7 @@ static void stopmachine_set_state(enum stopmachine_state state) cpu_relax(); } -int __stop_machine_run(int (*fn)(void *), void *data, unsigned int cpu) +int stop_machine_run(int (*fn)(void *), void *data, unsigned int cpu) { cpumask_t allbutself; unsigned int i, nr_cpus; @@ -116,17 +117,6 @@ int __stop_machine_run(int (*fn)(void *), void *data, unsigned int cpu) return ret; } -int stop_machine_run(int (*fn)(void *), void *data, unsigned int cpu) -{ - int ret; - - lock_cpu_hotplug(); - ret = __stop_machine_run(fn, data, cpu); - unlock_cpu_hotplug(); - - return ret; -} - static void stopmachine_softirq(void) { enum stopmachine_state state = STOPMACHINE_START; |