aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/smp.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-01 11:04:08 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-01 11:04:08 +0100
commit63725a8c546ac77dc6a1c60f91dd70675a5fec0f (patch)
treee564d7dbaf5477a127c04dc37c07f75122ccf323 /xen/include/xen/smp.h
parentf55efa2b1848289293fa813ecbe2a1ddb24fe5ed (diff)
downloadxen-63725a8c546ac77dc6a1c60f91dd70675a5fec0f.tar.gz
xen-63725a8c546ac77dc6a1c60f91dd70675a5fec0f.tar.bz2
xen-63725a8c546ac77dc6a1c60f91dd70675a5fec0f.zip
smp_call_function/on_selected_cpus/on_each_cpu all return void.
None of them can fail, so a return code is pointless. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/xen/smp.h')
-rw-r--r--xen/include/xen/smp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/include/xen/smp.h b/xen/include/xen/smp.h
index 6d7dca4211..47792b53a4 100644
--- a/xen/include/xen/smp.h
+++ b/xen/include/xen/smp.h
@@ -28,7 +28,7 @@ extern void smp_cpus_done(unsigned int max_cpus);
/*
* Call a function on all other processors
*/
-extern int smp_call_function(
+extern void smp_call_function(
void (*func) (void *info),
void *info,
int wait);
@@ -36,7 +36,7 @@ extern int smp_call_function(
/*
* Call a function on a selection of processors
*/
-extern int on_selected_cpus(
+extern void on_selected_cpus(
const cpumask_t *selected,
void (*func) (void *info),
void *info,
@@ -51,12 +51,12 @@ void smp_prepare_boot_cpu(void);
/*
* Call a function on all processors
*/
-static inline int on_each_cpu(
+static inline void on_each_cpu(
void (*func) (void *info),
void *info,
int wait)
{
- return on_selected_cpus(&cpu_online_map, func, info, wait);
+ on_selected_cpus(&cpu_online_map, func, info, wait);
}
#define smp_processor_id() raw_smp_processor_id()