Received: by 10.213.65.68 with SMTP id h4csp3168332imn; Mon, 2 Apr 2018 23:24:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx498QwCPwoYoHJk6oEYN1k/kLbnZPDLbbC+X/kenGJjQJ5fSBE1NKVrqIgg9cRBKxm8el2O1 X-Received: by 10.98.87.150 with SMTP id i22mr3224695pfj.119.1522736683867; Mon, 02 Apr 2018 23:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522736683; cv=none; d=google.com; s=arc-20160816; b=XPuUMgiZ9Qxf/rmiJlHc2CiQyeSD0c+qatUfzhvwU4B23vMzhbeXSy5KHfI8zXB5EB ykft60C6HHJq5qf1POvYg8+1cg3N6n5C2p+C0IjTYnpvCzNqegssD0q+ZdOUUu2PDOJg rc6ri5/qcRwwyqQz0SpYaPKqIVSXJq7EvCG8sKzO/b6TP9HKIsPyQiJW/YxCEHXP/Pc7 SjDp1nf1MP3HJfeOj2rdJS/ayAkwxb2Ave7dv9PT7XvmT5ipLt823JgPfmUBgR1+044n i0umR+szNm9teTquoeUkMXUo38vH7YKT4POwGoBkKIZfhhHfoUi0PbbcGbtSTCl5BTTB 823w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=k3xLb80MeC9sguekS728cG7pILCsck8rTlD8+lo7zQY=; b=jEJy9tCY1UZTHyrW1/MuTrQEkbdqKG4UBZXow97kKQGASLUy0UphHdOf3vnuQfy2PZ 5HhPUA4IEkxMMt3GXCZ+t3CM6TsTcnaVLzkBIkHXraJdMrOoC+vQTbl7xqKVphKDRIS2 Ox0O8WZERs63C4O5VKOV0BPHNQa3o8+tO/gCQfKCsbm5uXx4OtWIUdQblMjehT6Z0TbT iWm93Z09xa4rKwDGWZNZmwqZKUPDC4AhdkyumUCxYfT+5C+5E66aj6KUzbjTc0u8k2l5 K6ylDN5G2klPJ/lh7+5Y9IP/b2G3EYjJpXoJq6acxeeGbqnnKr4SKTXD6x/v4vGCd2MY OdxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j184si1415305pgd.731.2018.04.02.23.24.29; Mon, 02 Apr 2018 23:24:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754916AbeDCGVD (ORCPT + 99 others); Tue, 3 Apr 2018 02:21:03 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34618 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754837AbeDCGU4 (ORCPT ); Tue, 3 Apr 2018 02:20:56 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 48CAF20787; Tue, 3 Apr 2018 08:20:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id ED18E20384; Tue, 3 Apr 2018 08:20:54 +0200 (CEST) From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= To: linux@armlinux.org.uk, maxime.ripard@bootlin.com, wens@csie.org, marc.zyngier@arm.com, mark.rutland@arm.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, thomas.petazzoni@bootlin.com, mylene.josserand@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 03/13] ARM: sunxi: smp: Move cpu_resume assembly entry into file Date: Tue, 3 Apr 2018 08:18:26 +0200 Message-Id: <20180403061836.3926-4-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180403061836.3926-1-mylene.josserand@bootlin.com> References: <20180403061836.3926-1-mylene.josserand@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the CPU resume assembly function into the assembly file to remove all assembly code from C code. Signed-off-by: Mylène Josserand --- arch/arm/mach-sunxi/headsmp.S | 5 +++++ arch/arm/mach-sunxi/mc_smp.c | 11 +---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-sunxi/headsmp.S b/arch/arm/mach-sunxi/headsmp.S index 119005b5dff9..79890fbe5613 100644 --- a/arch/arm/mach-sunxi/headsmp.S +++ b/arch/arm/mach-sunxi/headsmp.S @@ -73,3 +73,8 @@ ENTRY(sunxi_mc_smp_secondary_startup) bl sunxi_mc_smp_cluster_cache_enable b secondary_startup ENDPROC(sunxi_mc_smp_secondary_startup) + +ENTRY(sunxi_mc_smp_resume) + bl sunxi_mc_smp_cluster_cache_enable + b cpu_resume +ENDPROC(sunxi_mc_smp_resume) diff --git a/arch/arm/mach-sunxi/mc_smp.c b/arch/arm/mach-sunxi/mc_smp.c index 9cc6c8fc6db7..727968d6a3e5 100644 --- a/arch/arm/mach-sunxi/mc_smp.c +++ b/arch/arm/mach-sunxi/mc_smp.c @@ -73,6 +73,7 @@ static void __iomem *prcm_base; static void __iomem *sram_b_smp_base; extern void sunxi_mc_smp_secondary_startup(void); +extern void sunxi_mc_smp_resume(void); static bool sunxi_core_is_cortex_a15(unsigned int core, unsigned int cluster) { @@ -572,16 +573,6 @@ static bool __init sunxi_mc_smp_cpu_table_init(void) */ typedef typeof(cpu_reset) phys_reset_t; -static void __init __naked sunxi_mc_smp_resume(void) -{ - asm volatile( - "bl sunxi_mc_smp_cluster_cache_enable\n" - "b cpu_resume" - /* Let compiler know about sunxi_mc_smp_cluster_cache_enable */ - :: "i" (sunxi_mc_smp_cluster_cache_enable) - ); -} - static int __init nocache_trampoline(unsigned long __unused) { phys_reset_t phys_reset; -- 2.11.0