diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2013-08-09 10:21:52 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-08-09 10:53:18 -0400 |
commit | bf7aab3ad4b4364a293421d628a912a2153ee1ee (patch) | |
tree | 6fdcf586e5211cb55b48911985504f291d961e91 | |
parent | b798df09f919c52823110a74bd568c6a4e98e6b2 (diff) |
xen: Defer spinlock setup until boot CPU setup
There's no need to do it at very early init, and doing it there
makes it impossible to use the jump_label machinery.
Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Link: http://lkml.kernel.org/r/1376058122-8248-5-git-send-email-raghavendra.kt@linux.vnet.ibm.com
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | arch/x86/xen/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index ca92754eb846..3b52d8075e47 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c | |||
@@ -279,6 +279,7 @@ static void __init xen_smp_prepare_boot_cpu(void) | |||
279 | 279 | ||
280 | xen_filter_cpu_maps(); | 280 | xen_filter_cpu_maps(); |
281 | xen_setup_vcpu_info_placement(); | 281 | xen_setup_vcpu_info_placement(); |
282 | xen_init_spinlocks(); | ||
282 | } | 283 | } |
283 | 284 | ||
284 | static void __init xen_smp_prepare_cpus(unsigned int max_cpus) | 285 | static void __init xen_smp_prepare_cpus(unsigned int max_cpus) |
@@ -680,7 +681,6 @@ void __init xen_smp_init(void) | |||
680 | { | 681 | { |
681 | smp_ops = xen_smp_ops; | 682 | smp_ops = xen_smp_ops; |
682 | xen_fill_possible_map(); | 683 | xen_fill_possible_map(); |
683 | xen_init_spinlocks(); | ||
684 | } | 684 | } |
685 | 685 | ||
686 | static void __init xen_hvm_smp_prepare_cpus(unsigned int max_cpus) | 686 | static void __init xen_hvm_smp_prepare_cpus(unsigned int max_cpus) |