aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-07-08 18:06:41 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-16 04:57:59 -0400
commita9e7062d7339f1a1df2b6d7e5d595c7d55b56bfb (patch)
tree34243fea71942ac2622cbd550b3d985ae0c89bb6 /arch/x86/xen/enlighten.c
parentce87b3d326de733c72b47662f106ee6cd699a20f (diff)
xen: move smp setup into smp.c
Move all the smp_ops setup into smp.c, allowing a lot of things to become static. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Stephen Tweedie <sct@redhat.com> Cc: Eduardo Habkost <ehabkost@redhat.com> Cc: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index ada2e1a141d..a85f447b8d0 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1237,21 +1237,6 @@ static const struct pv_mmu_ops xen_mmu_ops __initdata = {
1237 .set_fixmap = xen_set_fixmap, 1237 .set_fixmap = xen_set_fixmap,
1238}; 1238};
1239 1239
1240#ifdef CONFIG_SMP
1241static const struct smp_ops xen_smp_ops __initdata = {
1242 .smp_prepare_boot_cpu = xen_smp_prepare_boot_cpu,
1243 .smp_prepare_cpus = xen_smp_prepare_cpus,
1244 .cpu_up = xen_cpu_up,
1245 .smp_cpus_done = xen_smp_cpus_done,
1246
1247 .smp_send_stop = xen_smp_send_stop,
1248 .smp_send_reschedule = xen_smp_send_reschedule,
1249
1250 .send_call_func_ipi = xen_smp_send_call_function_ipi,
1251 .send_call_func_single_ipi = xen_smp_send_call_function_single_ipi,
1252};
1253#endif /* CONFIG_SMP */
1254
1255static void xen_reboot(int reason) 1240static void xen_reboot(int reason)
1256{ 1241{
1257 struct sched_shutdown r = { .reason = reason }; 1242 struct sched_shutdown r = { .reason = reason };
@@ -1340,9 +1325,7 @@ asmlinkage void __init xen_start_kernel(void)
1340 have_vcpu_info_placement = 0; 1325 have_vcpu_info_placement = 0;
1341#endif 1326#endif
1342 1327
1343#ifdef CONFIG_SMP 1328 xen_smp_init();
1344 smp_ops = xen_smp_ops;
1345#endif
1346 1329
1347 /* Get mfn list */ 1330 /* Get mfn list */
1348 if (!xen_feature(XENFEAT_auto_translated_physmap)) 1331 if (!xen_feature(XENFEAT_auto_translated_physmap))