From patchwork Tue Apr 8 15:12:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 28007 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 38A4D20447 for ; Tue, 8 Apr 2014 15:15:03 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oy12sf3148397veb.11 for ; Tue, 08 Apr 2014 08:15:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=4S+3tZerYi0M02GSYpPfTkWh4jcV1QppgMTN3QRDlgE=; b=A6SqoB/H83DXzqysuhl+pmw+lqCa9qZ/mdJnpzz8Ez20aH7l6rbvmW4H67JIEpzC1q qZPOzsoBYwEwDbwUTWSBBPsqafbbmsRHrFJUknPLJ3smPWwmK+8Zr9S7Eq+FXRXlmpPM VZeeyTPPebfXdIA5XzQJLzBeWXwCdAdobtpc+y7gDqXvz6a/LipYyvu42FlvNQHydSqZ zjRb+089k0s1YJ/XG2z/Yn7JZmCatEG73U7FtEdlXgaCHvcSzsXADt95RRVPH5XrTJkn UniigvqGMvl9tY9ZXI5P9qwNlTxcsMT604pYPJThrInBm0jYTy2juagQOTEpJtZ1JyOd O9JA== X-Gm-Message-State: ALoCoQnlVBzatEgDErAOzA7kscy+YRX4KG6v6qXV4VwwcaBTw7pOGAqIO1JCsTJrG9m90c+ghWtC X-Received: by 10.236.141.203 with SMTP id g51mr1839449yhj.24.1396970103474; Tue, 08 Apr 2014 08:15:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.133 with SMTP id v5ls225261qgv.23.gmail; Tue, 08 Apr 2014 08:15:03 -0700 (PDT) X-Received: by 10.220.106.84 with SMTP id w20mr3694458vco.18.1396970103260; Tue, 08 Apr 2014 08:15:03 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id jb7si445877vec.143.2014.04.08.08.15.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 08:15:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id ij19so915729vcb.10 for ; Tue, 08 Apr 2014 08:15:03 -0700 (PDT) X-Received: by 10.220.198.197 with SMTP id ep5mr3662312vcb.21.1396970103188; Tue, 08 Apr 2014 08:15:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp254023vcv; Tue, 8 Apr 2014 08:15:02 -0700 (PDT) X-Received: by 10.221.28.202 with SMTP id rv10mr3738034vcb.10.1396970101578; Tue, 08 Apr 2014 08:15:01 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id w10si448252vck.104.2014.04.08.08.15.00 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 08 Apr 2014 08:15:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WXXik-0005Qv-2T; Tue, 08 Apr 2014 15:13:54 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WXXif-0005LB-Sa for xen-devel@lists.xensource.com; Tue, 08 Apr 2014 15:13:50 +0000 Received: from [85.158.143.35:54563] by server-1.bemta-4.messagelabs.com id 9B/68-09853-C2214435; Tue, 08 Apr 2014 15:13:48 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-4.tower-21.messagelabs.com!1396970023!7802972!6 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 8180 invoked from network); 8 Apr 2014 15:13:48 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-4.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 8 Apr 2014 15:13:48 -0000 X-IronPort-AV: E=Sophos;i="4.97,818,1389744000"; d="scan'208";a="117915008" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 08 Apr 2014 15:12:52 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.2.342.4; Tue, 8 Apr 2014 11:12:51 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WXXhj-0005Ms-S2; Tue, 08 Apr 2014 16:12:51 +0100 From: Stefano Stabellini To: Date: Tue, 8 Apr 2014 16:12:42 +0100 Message-ID: <1396969969-18973-5-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-DLP: MIA1 Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH v7 05/12] xen/arm: nr_lrs should be uint8_t X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stefano.stabellini@eu.citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: A later patch is going to use uint8_t to keep track of LRs. Both GICv3 and GICv2 don't need any more than an uint8_t to keep track of the number of LRs. Signed-off-by: Stefano Stabellini Acked-by: Julien Grall Acked-by: Ian Campbell --- 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 b8b1452..f1ce9b7 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