}
#ifdef CONFIG_HOTPLUG_CPU
-int xen_cpu_disable(void)
+static int xen_cpu_disable(void)
{
unsigned int cpu = smp_processor_id();
if (cpu == 0)
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;
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);
}
#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();
}
void __init xen_setup_vcpu_info_placement(void);
-void xen_play_dead(void);
-void xen_cpu_die(unsigned int cpu);
-int xen_cpu_disable(void);
-
#ifdef CONFIG_SMP
void xen_smp_init(void);