From patchwork Tue Jun 10 14:07:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 31671 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 078BC2054B for ; Tue, 10 Jun 2014 14:10:59 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oz11sf9990866veb.7 for ; Tue, 10 Jun 2014 07:10:58 -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=t63uohI6Vul9EigtzH5LAyIRhBqlcfSB6vy+/SjVDNY=; b=Kz9YtUbRfh56sO/JpVRgccOtXEqX+pMbAkMkz33KUnbsm30g6ntwutjSNHIuhBmDHy Jweg3Eh8ZhfETUGw5CeTUbGVfeUa9fz7R4CV/qPOhVuUDuuO/B6nIELI25fgMX8wX4sg hD5LC3bQZOC28q8w+Hihog8ahIT9VabcO2RZLiLoipWOp0FUncWCHXLsDorjT5o4lb/H TVpCdPRILUv0lWlI59J1z08YAU63sWiW+QzJYQt2YZ87lRkueiRmqI85MtKsG6zOwTNv C7KfZy7jmo1gXVsQa5bnGIcTKLY/D14eQIf0PO5RVtOppA3ZUR50XnCIbGsTV0ivwFhN Xm+g== X-Gm-Message-State: ALoCoQkdjRY0ax6xY0nb+KEOB1Q3qWQ+jVGAPN03qpYyMNMgo6NAkPSoc21TSSYxf0JvKfqwKCmi X-Received: by 10.236.26.105 with SMTP id b69mr9264816yha.55.1402409458560; Tue, 10 Jun 2014 07:10:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.145 with SMTP id g17ls2015316qge.76.gmail; Tue, 10 Jun 2014 07:10:58 -0700 (PDT) X-Received: by 10.52.12.129 with SMTP id y1mr1826139vdb.59.1402409457831; Tue, 10 Jun 2014 07:10:57 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id pm3si13132912vec.75.2014.06.10.07.10.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 07:10:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.172 as permitted sender) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jz11so4082035veb.31 for ; Tue, 10 Jun 2014 07:10:57 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr33044626vcb.0.1402409457742; Tue, 10 Jun 2014 07:10: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.221.54.6 with SMTP id vs6csp228442vcb; Tue, 10 Jun 2014 07:10:57 -0700 (PDT) X-Received: by 10.50.4.5 with SMTP id g5mr44926481igg.14.1402409456957; Tue, 10 Jun 2014 07:10:56 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id qo6si68401241igb.27.2014.06.10.07.10.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Jun 2014 07:10:56 -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 1WuMiQ-0000OH-AA; Tue, 10 Jun 2014 14:07:54 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WuMiO-0000ND-9j for xen-devel@lists.xensource.com; Tue, 10 Jun 2014 14:07:52 +0000 Received: from [85.158.139.211:59357] by server-1.bemta-5.messagelabs.com id AF/64-01663-73117935; Tue, 10 Jun 2014 14:07:51 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-11.tower-206.messagelabs.com!1402409266!5029227!2 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.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 24823 invoked from network); 10 Jun 2014 14:07:50 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-11.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 10 Jun 2014 14:07:50 -0000 X-IronPort-AV: E=Sophos; i="4.98,1009,1392163200"; d="scan'208"; a="141612266" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 10 Jun 2014 14:07:46 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Tue, 10 Jun 2014 10:07:43 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1WuMiA-0006am-Qa; Tue, 10 Jun 2014 15:07:38 +0100 From: Stefano Stabellini To: Date: Tue, 10 Jun 2014 15:07:13 +0100 Message-ID: <1402409240-28114-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: MIA2 Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com, Stefano Stabellini Subject: [Xen-devel] [PATCH v9 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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.172 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 4af8c1a..99b6bb4 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