[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 16/38] arm: Add simple cpu_{sibling, core}_mask
On Fri, 1 Jun 2012, Ian Campbell wrote: > Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> > xen/arch/arm/dummy.S | 2 -- > xen/arch/arm/setup.c | 7 +++++++ > xen/arch/arm/smpboot.c | 5 +++++ > 3 files changed, 12 insertions(+), 2 deletions(-) > > diff --git a/xen/arch/arm/dummy.S b/xen/arch/arm/dummy.S > index c001e8d..03f7489 100644 > --- a/xen/arch/arm/dummy.S > +++ b/xen/arch/arm/dummy.S > @@ -7,8 +7,6 @@ x: .word 0xe7f000f0 /* Undefined instruction */ > x: mov pc, lr > > /* SMP support */ > -DUMMY(per_cpu__cpu_core_mask); > -DUMMY(per_cpu__cpu_sibling_mask); > DUMMY(node_online_map); > DUMMY(smp_send_state_dump); > > diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c > index 81ababb..b0cfacc 100644 > --- a/xen/arch/arm/setup.c > +++ b/xen/arch/arm/setup.c > @@ -230,6 +230,13 @@ void __init start_xen(unsigned long boot_phys_offset, > } > } > > + if ( !zalloc_cpumask_var(&per_cpu(cpu_sibling_mask, 0)) || > + !zalloc_cpumask_var(&per_cpu(cpu_core_mask, 0)) ) > + BUG(); > + > + cpumask_clear(per_cpu(cpu_sibling_mask, 0)); > + cpumask_clear(per_cpu(cpu_core_mask, 0)); > + > printk("Brought up %ld CPUs\n", (long)num_online_cpus()); > /* TODO: smp_cpus_done(); */ > > diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c > index ea05afc..8517d86 100644 > --- a/xen/arch/arm/smpboot.c > +++ b/xen/arch/arm/smpboot.c > @@ -52,6 +52,11 @@ unsigned long __initdata ready_cpus = 0; > > /* ID of the PCPU we're running on */ > DEFINE_PER_CPU(unsigned int, cpu_id); > +/* XXX these seem awefully x86ish... */ > +/* representing HT siblings of each logical CPU */ > +DEFINE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_mask); > +/* representing HT and core siblings of each logical CPU */ > +DEFINE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_core_mask); > > void __init > smp_prepare_cpus (unsigned int max_cpus) > -- > 1.7.9.1 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxx > http://lists.xen.org/xen-devel > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |