summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/smp.c
diff options
context:
space:
mode:
authorAlex Nixon <alex.nixon@citrix.com>2008-09-08 13:43:34 +0100
committerIngo Molnar <mingo@elte.hu>2008-09-08 19:12:24 +0200
commit26fd10517e810dd59ea050b052de24a75ee6dc07 (patch)
treea9c1c4e28903946e7e1deb2febf018d8a82bb0b9 /arch/x86/xen/smp.c
parent2737146b3aa2cf8b5d5ae87a18c49fe1c374528b (diff)
downloadblackbird-op-linux-26fd10517e810dd59ea050b052de24a75ee6dc07.tar.gz
blackbird-op-linux-26fd10517e810dd59ea050b052de24a75ee6dc07.zip
xen: make CPU hotplug functions static
There's no need for these functions to be accessed from outside of xen/smp.c Signed-off-by: Alex Nixon <alex.nixon@citrix.com> Acked-by: Jeremy Fitzhardinge <jeremy@goop.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/smp.c')
-rw-r--r--arch/x86/xen/smp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
index bf51a466d62c..d77da613b1d2 100644
--- a/arch/x86/xen/smp.c
+++ b/arch/x86/xen/smp.c
@@ -333,7 +333,7 @@ static void xen_smp_cpus_done(unsigned int max_cpus)
}
#ifdef CONFIG_HOTPLUG_CPU
-int xen_cpu_disable(void)
+static int xen_cpu_disable(void)
{
unsigned int cpu = smp_processor_id();
if (cpu == 0)
@@ -345,7 +345,7 @@ int xen_cpu_disable(void)
return 0;
}
-void xen_cpu_die(unsigned int cpu)
+static void xen_cpu_die(unsigned int cpu)
{
while (HYPERVISOR_vcpu_op(VCPUOP_is_up, cpu, NULL)) {
current->state = TASK_UNINTERRUPTIBLE;
@@ -362,7 +362,7 @@ void xen_cpu_die(unsigned int cpu)
alternatives_smp_switch(0);
}
-void xen_play_dead(void)
+static void xen_play_dead(void)
{
play_dead_common();
HYPERVISOR_vcpu_op(VCPUOP_down, smp_processor_id(), NULL);
@@ -370,17 +370,17 @@ void xen_play_dead(void)
}
#else /* !CONFIG_HOTPLUG_CPU */
-int xen_cpu_disable(void)
+static int xen_cpu_disable(void)
{
return -ENOSYS;
}
-void xen_cpu_die(unsigned int cpu)
+static void xen_cpu_die(unsigned int cpu)
{
BUG();
}
-void xen_play_dead(void)
+static void xen_play_dead(void)
{
BUG();
}
OpenPOWER on IntegriCloud