[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] xen: secondary CPU handling adjustments
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1197454487 0 # Node ID 05c57da2fcff6c32aced3e5b72c8d66229d427c6 # Parent 7b2735c64dca31ff281102504ae9bcfe979e28e1 xen: secondary CPU handling adjustments Add proper attributes and remove a few unused items. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- arch/i386/kernel/time-xen.c | 4 ++-- drivers/xen/core/smpboot.c | 18 ++---------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff -r 7b2735c64dca -r 05c57da2fcff arch/i386/kernel/time-xen.c --- a/arch/i386/kernel/time-xen.c Wed Dec 12 10:14:18 2007 +0000 +++ b/arch/i386/kernel/time-xen.c Wed Dec 12 10:14:47 2007 +0000 @@ -1054,7 +1054,7 @@ void time_resume(void) #ifdef CONFIG_SMP static char timer_name[NR_CPUS][15]; -int local_setup_timer(unsigned int cpu) +int __cpuinit local_setup_timer(unsigned int cpu) { int seq, irq; @@ -1085,7 +1085,7 @@ int local_setup_timer(unsigned int cpu) return 0; } -void local_teardown_timer(unsigned int cpu) +void __cpuexit local_teardown_timer(unsigned int cpu) { BUG_ON(cpu == 0); unbind_from_irqhandler(per_cpu(timer_irq, cpu), NULL); diff -r 7b2735c64dca -r 05c57da2fcff drivers/xen/core/smpboot.c --- a/drivers/xen/core/smpboot.c Wed Dec 12 10:14:18 2007 +0000 +++ b/drivers/xen/core/smpboot.c Wed Dec 12 10:14:47 2007 +0000 @@ -59,8 +59,6 @@ static char callfunc_name[NR_CPUS][15]; u8 cpu_2_logical_apicid[NR_CPUS] = { [0 ... NR_CPUS-1] = BAD_APICID }; -void *xquad_portio; - cpumask_t cpu_sibling_map[NR_CPUS] __cacheline_aligned; cpumask_t cpu_core_map[NR_CPUS] __cacheline_aligned; EXPORT_SYMBOL(cpu_core_map); @@ -115,7 +113,7 @@ remove_siblinginfo(int cpu) cpu_data[cpu].booted_cores = 0; } -static int xen_smp_intr_init(unsigned int cpu) +static int __cpuinit xen_smp_intr_init(unsigned int cpu) { int rc; @@ -392,21 +390,9 @@ void __cpu_die(unsigned int cpu) alternatives_smp_switch(0); } -#else /* !CONFIG_HOTPLUG_CPU */ - -int __cpu_disable(void) -{ - return -ENOSYS; -} - -void __cpu_die(unsigned int cpu) -{ - BUG(); -} - #endif /* CONFIG_HOTPLUG_CPU */ -int __devinit __cpu_up(unsigned int cpu) +int __cpuinit __cpu_up(unsigned int cpu) { int rc; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |