From patchwork Thu May 22 12:32:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 30619 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 545DA20369 for ; Thu, 22 May 2014 12:34:58 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf15818546iec.0 for ; Thu, 22 May 2014 05:34:57 -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=FRbsf6HbNkQXigNqNed3AsNfm5ipvFZgmjgMLSjtthw=; b=GkOQe70+ylXOeZCyAC04+5vKZHC2FD/STUvviL3/XWI4J2kkxidKjncjVbHSYtvZDB i5yuY+Np+FSMrv/9lq+zAZfP8oIFl0QVPCZufSY/9OGrvH2WBRjSkMVECnrWp0rlYKlK 1LRmlcv0f5gLP5Y5x6ppi6dn2Gse5+y8eKxvdKCl3+OeYevpPtwTdhYZd1Sp40y5kFvZ RnbBX8Kw9Gr6CdRUSfzvn9s3Yhy/ac3DbfX84lI/VVV/Q/Hdto7JlCpiJoMmMG0OxRr1 nvHGVnfN7K6RGt8PbcraITU9RYn+tASyn00hB7v5Fsx8Vt2y9nOQ5qaDVWKrAblR4DGm B0XA== X-Gm-Message-State: ALoCoQmJ3qXbS7NfF85MXbixLrMPiZOmRtcU3xwDLQtVkSs3T47SFaf0L67lUrlf87Rkxesg9+Jz X-Received: by 10.43.117.71 with SMTP id fl7mr22929009icc.24.1400762097914; Thu, 22 May 2014 05:34:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.99 with SMTP id y90ls1237468qgd.82.gmail; Thu, 22 May 2014 05:34:57 -0700 (PDT) X-Received: by 10.220.176.68 with SMTP id bd4mr123772vcb.70.1400762097798; Thu, 22 May 2014 05:34:57 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id u17si2459023vew.74.2014.05.22.05.34.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 May 2014 05:34:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lc6so4289386vcb.16 for ; Thu, 22 May 2014 05:34:57 -0700 (PDT) X-Received: by 10.58.246.132 with SMTP id xw4mr34390068vec.2.1400762097728; Thu, 22 May 2014 05:34:57 -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.221.72 with SMTP id ib8csp194979vcb; Thu, 22 May 2014 05:34:57 -0700 (PDT) X-Received: by 10.140.21.101 with SMTP id 92mr76393679qgk.57.1400762097289; Thu, 22 May 2014 05:34:57 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id g7si4955505qgd.86.2014.05.22.05.34.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 22 May 2014 05:34:57 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) 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 1WnSBT-0004JN-4T; Thu, 22 May 2014 12:33:19 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WnSBR-0004I4-FU for xen-devel@lists.xensource.com; Thu, 22 May 2014 12:33:17 +0000 Received: from [85.158.143.35:49882] by server-2.bemta-4.messagelabs.com id 6C/9A-06539-C8EED735; Thu, 22 May 2014 12:33:16 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-14.tower-21.messagelabs.com!1400761994!6613018!2 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 29432 invoked from network); 22 May 2014 12:33:16 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-14.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 22 May 2014 12:33:16 -0000 X-IronPort-AV: E=Sophos;i="4.98,887,1392163200"; d="scan'208";a="134537191" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 22 May 2014 12:33:13 +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.3.181.6; Thu, 22 May 2014 08:33:13 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WnSBI-0003tn-5m; Thu, 22 May 2014 13:33:08 +0100 From: Stefano Stabellini To: Date: Thu, 22 May 2014 13:32:22 +0100 Message-ID: <1400761950-25035-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 Subject: [Xen-devel] [PATCH v8 05/13] 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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) 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 b73bee3..15bee85 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -54,7 +54,7 @@ static struct { 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