[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCHv5 1/3] rwlock: Add per-cpu reader-writer lock infrastructure



On Fri, 2015-12-18 at 16:08 +0000, Malcolm Crossley wrote:
> diff --git a/xen/include/asm-arm/percpu.h b/xen/include/asm-arm/percpu.h
> index 71e7649..c308a56 100644
> --- a/xen/include/asm-arm/percpu.h
> +++ b/xen/include/asm-arm/percpu.h
> @@ -27,6 +27,11 @@ void percpu_init_areas(void);
> Â#define __get_cpu_var(var) \
> ÂÂÂÂÂ(*RELOC_HIDE(&per_cpu__##var, READ_SYSREG(TPIDR_EL2)))
> Â
> +#define per_cpu_ptr(var, cpu)ÂÂ\
> +ÂÂÂÂ(*RELOC_HIDE(&var, __per_cpu_offset[cpu]))
> +#define __get_cpu_ptr(var) \
> +ÂÂÂÂ(*RELOC_HIDE(&var, READ_SYSREG(TPIDR_EL2)))
> +
> Â#define DECLARE_PER_CPU(type, name) extern __typeof__(type)
> per_cpu__##name
> Â

For ARM: Acked-by :Ian Campbell <ian.campbell@xxxxxxxxxx>


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.