From patchwork Fri Jan 16 16:20:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 43252 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D48D6240BA for ; Fri, 16 Jan 2015 16:23:06 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id u14sf11679976lbd.3 for ; Fri, 16 Jan 2015 08:23:05 -0800 (PST) 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:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=1vvS/ml3ln5/4xDGioW+1hEtH+voPH0X4rRhVsfdNIs=; b=LNdBf+uJ87d4w8ks5YSP46ftED4p+BLJxeDSQFdFU4u9o93FeV0MkZgqjzl4kUkTzA XVhm+Z32A002v5XiDvOvAQRBAg0us+k7gsddLdCv1EGnfdc9hvLs+YrVcwduR+v/TM6B xBlY/+cTP1t2pEjoIpfQtCS6zIhBrL8mnhy7NOsGF9vcUMLfY8KbwhTgSPxBQrQOUA8O nnyHQ3Hk1wlgmoLVDSdvWSicGuOXzaQqEGmaCZFivWmL3MncZq8osLzxJaq1z0N5dOOA RV/VXAAxb/Ziu+CEY9p9RdsNwmJhph2tzfbj+JEN36a3AVZsPqksdVfkhM80CxR3WeJ0 ctBg== X-Gm-Message-State: ALoCoQmAM2l9KlTxmCPqnG6AFD2pOhOPVbUYegm6YB5FOax+n7kEtmUa4tFb64l0Y1fGt+gkOVGp X-Received: by 10.180.108.165 with SMTP id hl5mr555177wib.7.1421425385752; Fri, 16 Jan 2015 08:23:05 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.50 with SMTP id u18ls359678laz.96.gmail; Fri, 16 Jan 2015 08:23:05 -0800 (PST) X-Received: by 10.152.207.72 with SMTP id lu8mr11085153lac.54.1421425385519; Fri, 16 Jan 2015 08:23:05 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id l10si4801902lam.87.2015.01.16.08.23.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Jan 2015 08:23:05 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id p9so19305647lbv.0 for ; Fri, 16 Jan 2015 08:23:05 -0800 (PST) X-Received: by 10.152.6.132 with SMTP id b4mr16750128laa.59.1421425385219; Fri, 16 Jan 2015 08:23:05 -0800 (PST) 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.112.9.200 with SMTP id c8csp361493lbb; Fri, 16 Jan 2015 08:23:04 -0800 (PST) X-Received: by 10.140.31.36 with SMTP id e33mr24974170qge.36.1421425383611; Fri, 16 Jan 2015 08:23:03 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id hj6si6511640qcb.49.2015.01.16.08.23.02 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 16 Jan 2015 08:23:03 -0800 (PST) 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 1YC9eM-0006AE-Kn; Fri, 16 Jan 2015 16:21:30 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YC9eK-00068P-Og for xen-devel@lists.xenproject.org; Fri, 16 Jan 2015 16:21:28 +0000 Received: from [193.109.254.147] by server-4.bemta-14.messagelabs.com id CC/11-02954-88A39B45; Fri, 16 Jan 2015 16:21:28 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-11.tower-27.messagelabs.com!1421425287!17767298!1 X-Originating-IP: [209.85.212.178] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.12.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 4171 invoked from network); 16 Jan 2015 16:21:27 -0000 Received: from mail-wi0-f178.google.com (HELO mail-wi0-f178.google.com) (209.85.212.178) by server-11.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 16 Jan 2015 16:21:27 -0000 Received: by mail-wi0-f178.google.com with SMTP id z2so4906011wiv.5 for ; Fri, 16 Jan 2015 08:21:27 -0800 (PST) X-Received: by 10.194.84.240 with SMTP id c16mr30852985wjz.74.1421425286945; Fri, 16 Jan 2015 08:21:26 -0800 (PST) Received: from chilopoda.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id dc1sm3562564wib.18.2015.01.16.08.21.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jan 2015 08:21:24 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Fri, 16 Jan 2015 16:20:47 +0000 Message-Id: <1421425248-8727-6-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1421425248-8727-1-git-send-email-julien.grall@linaro.org> References: <1421425248-8727-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 5/6] xen/arm: platforms: Move init_time and specific_mapping in init section 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: , MIME-Version: 1.0 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: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 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: The callbacks init_time and specific_mapping are respectively used during timer initialization and DOM0 building. These 2 taks only happen during Xen boot. Signed-off-by: Julien Grall --- xen/arch/arm/platforms/exynos5.c | 4 ++-- xen/arch/arm/platforms/omap5.c | 4 ++-- xen/arch/arm/platforms/xgene-storm.c | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/xen/arch/arm/platforms/exynos5.c b/xen/arch/arm/platforms/exynos5.c index 79e3a5f..e90b659 100644 --- a/xen/arch/arm/platforms/exynos5.c +++ b/xen/arch/arm/platforms/exynos5.c @@ -37,7 +37,7 @@ static bool_t secure_firmware; #define SMC_CMD_CPU1BOOT (-4) -static int exynos5_init_time(void) +static int __init exynos5_init_time(void) { uint32_t reg; void __iomem *mct; @@ -80,7 +80,7 @@ static int exynos5_init_time(void) } /* Additional mappings for dom0 (Not in the DTS) */ -static int exynos5250_specific_mapping(struct domain *d) +static int __init exynos5250_specific_mapping(struct domain *d) { /* Map the chip ID */ map_mmio_regions(d, paddr_to_pfn(EXYNOS5_PA_CHIPID), 1, diff --git a/xen/arch/arm/platforms/omap5.c b/xen/arch/arm/platforms/omap5.c index 9d6e504..7086c0b 100644 --- a/xen/arch/arm/platforms/omap5.c +++ b/xen/arch/arm/platforms/omap5.c @@ -45,7 +45,7 @@ static uint16_t num_den[8][2] = { * clocks, adjusting the increment per clock in hardware accordingly to * maintain a constant count rate. */ -static int omap5_init_time(void) +static int __init omap5_init_time(void) { void __iomem *ckgen_prm_base; void __iomem *rt_ct_base; @@ -99,7 +99,7 @@ static int omap5_init_time(void) } /* Additional mappings for dom0 (not in the DTS) */ -static int omap5_specific_mapping(struct domain *d) +static int __init omap5_specific_mapping(struct domain *d) { /* Map the PRM module */ map_mmio_regions(d, paddr_to_pfn(OMAP5_PRM_BASE), 2, diff --git a/xen/arch/arm/platforms/xgene-storm.c b/xen/arch/arm/platforms/xgene-storm.c index 0b3492d..8c650c3 100644 --- a/xen/arch/arm/platforms/xgene-storm.c +++ b/xen/arch/arm/platforms/xgene-storm.c @@ -40,7 +40,7 @@ static uint32_t xgene_storm_quirks(void) return PLATFORM_QUIRK_GIC_64K_STRIDE|PLATFORM_QUIRK_GUEST_PIRQ_NEED_EOI; } -static int map_one_mmio(struct domain *d, const char *what, +static int __init map_one_mmio(struct domain *d, const char *what, unsigned long start, unsigned long end) { int ret; @@ -54,8 +54,8 @@ static int map_one_mmio(struct domain *d, const char *what, return ret; } -static int map_one_spi(struct domain *d, const char *what, - unsigned int spi, unsigned int type) +static int __init map_one_spi(struct domain *d, const char *what, + unsigned int spi, unsigned int type) { unsigned int irq; int ret; @@ -79,10 +79,10 @@ static int map_one_spi(struct domain *d, const char *what, } /* Creates MMIO mappings base..end as well as 4 SPIs from the given base. */ -static int xgene_storm_pcie_specific_mapping(struct domain *d, - const struct dt_device_node *node, - paddr_t base, paddr_t end, - int base_spi) +static int __init xgene_storm_pcie_specific_mapping(struct domain *d, + const struct dt_device_node *node, + paddr_t base, paddr_t end, + int base_spi) { int ret; @@ -121,7 +121,7 @@ err: * "interrupt-map" properties to domain 0). Instead for now map the * necessary resources manually. */ -static int xgene_storm_specific_mapping(struct domain *d) +static int __init xgene_storm_specific_mapping(struct domain *d) { struct dt_device_node *node = NULL; int ret;