Commit 26fd1051 authored by Alex Nixon's avatar Alex Nixon Committed by Ingo Molnar

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: default avatarAlex Nixon <alex.nixon@citrix.com>
Acked-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2737146b
...@@ -333,7 +333,7 @@ static void xen_smp_cpus_done(unsigned int max_cpus) ...@@ -333,7 +333,7 @@ static void xen_smp_cpus_done(unsigned int max_cpus)
} }
#ifdef CONFIG_HOTPLUG_CPU #ifdef CONFIG_HOTPLUG_CPU
int xen_cpu_disable(void) static int xen_cpu_disable(void)
{ {
unsigned int cpu = smp_processor_id(); unsigned int cpu = smp_processor_id();
if (cpu == 0) if (cpu == 0)
...@@ -345,7 +345,7 @@ int xen_cpu_disable(void) ...@@ -345,7 +345,7 @@ int xen_cpu_disable(void)
return 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)) { while (HYPERVISOR_vcpu_op(VCPUOP_is_up, cpu, NULL)) {
current->state = TASK_UNINTERRUPTIBLE; current->state = TASK_UNINTERRUPTIBLE;
...@@ -362,7 +362,7 @@ void xen_cpu_die(unsigned int cpu) ...@@ -362,7 +362,7 @@ void xen_cpu_die(unsigned int cpu)
alternatives_smp_switch(0); alternatives_smp_switch(0);
} }
void xen_play_dead(void) static void xen_play_dead(void)
{ {
play_dead_common(); play_dead_common();
HYPERVISOR_vcpu_op(VCPUOP_down, smp_processor_id(), NULL); HYPERVISOR_vcpu_op(VCPUOP_down, smp_processor_id(), NULL);
...@@ -370,17 +370,17 @@ void xen_play_dead(void) ...@@ -370,17 +370,17 @@ void xen_play_dead(void)
} }
#else /* !CONFIG_HOTPLUG_CPU */ #else /* !CONFIG_HOTPLUG_CPU */
int xen_cpu_disable(void) static int xen_cpu_disable(void)
{ {
return -ENOSYS; return -ENOSYS;
} }
void xen_cpu_die(unsigned int cpu) static void xen_cpu_die(unsigned int cpu)
{ {
BUG(); BUG();
} }
void xen_play_dead(void) static void xen_play_dead(void)
{ {
BUG(); BUG();
} }
......
...@@ -51,10 +51,6 @@ void xen_mark_init_mm_pinned(void); ...@@ -51,10 +51,6 @@ void xen_mark_init_mm_pinned(void);
void __init xen_setup_vcpu_info_placement(void); 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 #ifdef CONFIG_SMP
void xen_smp_init(void); void xen_smp_init(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment