From: Ian Campbell Subject: Re: [PATCH v5 05/10] xen/arm: nr_lrs should be uint8_t Date: Tue, 1 Apr 2014 12:59:01 +0100 Message-ID: <1396353541.8667.127.camel@kazak.uk.xensource.com> References: <1395686975-12649-5-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1395686975-12649-5-git-send-email-stefano.stabellini@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: julien.grall@citrix.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, 2014-03-24 at 18:49 +0000, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini Does this change anything in practice? Hopefully the compiler doesn't start doing stupid word access + mask on every access... Might there be more LRs with e.g. gic v3? > --- > xen/arch/arm/gic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c > index 3262db3..5cdcd15 100644 > --- a/xen/arch/arm/gic.c > +++ b/xen/arch/arm/gic.c > @@ -56,7 +56,7 @@ static irq_desc_t irq_desc[NR_IRQS]; > static DEFINE_PER_CPU(irq_desc_t[NR_LOCAL_IRQS], local_irq_desc); > static DEFINE_PER_CPU(uint64_t, lr_mask); > > -static unsigned nr_lrs; > +static uint8_t nr_lrs; > #define lr_all_full() (this_cpu(lr_mask) == ((1 << nr_lrs) - 1)) > > /* The GIC mapping of CPU interfaces does not necessarily match the