From patchwork Mon Jun 8 07:11:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 6563201 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 12AA8C0020 for ; Mon, 8 Jun 2015 07:15:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 42B1320546 for ; Mon, 8 Jun 2015 07:15:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5071220544 for ; Mon, 8 Jun 2015 07:14:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z1rFB-0008O3-1V; Mon, 08 Jun 2015 07:13:13 +0000 Received: from mail-pd0-f175.google.com ([209.85.192.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z1rEp-0008AW-Gl; Mon, 08 Jun 2015 07:12:52 +0000 Received: by pdjn11 with SMTP id n11so59478678pdj.0; Mon, 08 Jun 2015 00:12:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ooPeD/+g2fyClk1ZYDPxxTV6tudLJgisbfrOqfBPRLA=; b=dGiev9VOnyMFlw7Rwv610GQCPdW439SdNy/JUm4R14YXmWHlNMu8hZTiJl5GcgYtcE F5D/eewrYm20NQpmsDh66vL+n0REtMAC5HPJqtvkUzGu5/TT9g1qyC8M/OZyOGa+25NL W5spI2mUmmd33I42RoJXDtvFLtc/lgw54JIYImqRoHpD8Ycv1km8YyVk6XqKCl1ywZKh qsMLDAJjnQKk4JTeXJeNpFB/bNi+je2Qh7iJG5jwZjqEjx9Xosv5orS9UAd9nf7TVFeq +TxdJXP7dgBrxe102S+R1jSUTJknnK3lsR5U+O9DDc6bZCqUNsWFnrAZoJed6aDjQLQi E7jg== X-Received: by 10.70.92.193 with SMTP id co1mr26770351pdb.7.1433747550411; Mon, 08 Jun 2015 00:12:30 -0700 (PDT) Received: from localhost.localdomain ([192.253.240.41]) by mx.google.com with ESMTPSA id nt15sm1495125pdb.14.2015.06.08.00.12.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Jun 2015 00:12:29 -0700 (PDT) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH v5 3/3] ARM: rockchip: fix the SMP code style Date: Mon, 8 Jun 2015 15:11:36 +0800 Message-Id: <1433747496-7642-4-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433747496-7642-1-git-send-email-wxt@rock-chips.com> References: <1433747496-7642-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150608_001251_638020_F4244A1C X-CRM114-Status: GOOD ( 10.41 ) X-Spam-Score: -1.8 (-) Cc: Russell King , Dmitry Torokhov , dianders@chromium.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Caesar Wang X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use the below scripts to check: scripts/checkpatch.pl -f --subject arch/arm/mach-rockchip/platsmp.c Signed-off-by: Caesar Wang Changes in v5: - Add the changelog. Changes in v4: None Changes in v3: None Changes in v2: - Use the checkpatch.pl -f --subjective to check. --- arch/arm/mach-rockchip/platsmp.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c index 5bc2a89..e538b13 100644 --- a/arch/arm/mach-rockchip/platsmp.c +++ b/arch/arm/mach-rockchip/platsmp.c @@ -103,7 +103,7 @@ static int pmu_set_power_domain(int pd, bool on) ret = pmu_power_domain_is_on(pd); if (ret < 0) { pr_err("%s: could not read power domain state\n", - __func__); + __func__); return ret; } } @@ -133,7 +133,7 @@ static int __cpuinit rockchip_boot_secondary(unsigned int cpu, if (cpu >= ncores) { pr_err("%s: cpu %d outside maximum number of cpus %d\n", - __func__, cpu, ncores); + __func__, cpu, ncores); return -ENXIO; } @@ -152,7 +152,7 @@ static int __cpuinit rockchip_boot_secondary(unsigned int cpu, * */ mdelay(1); writel(virt_to_phys(rockchip_secondary_startup), - sram_base_addr + 8); + sram_base_addr + 8); writel(0xDEADBEAF, sram_base_addr + 4); dsb_sev(); } @@ -331,7 +331,7 @@ static int rockchip_cpu_kill(unsigned int cpu) static void rockchip_cpu_die(unsigned int cpu) { v7_exit_coherency_flush(louis); - while(1) + while (1) cpu_do_idle(); } #endif @@ -344,4 +344,5 @@ static struct smp_operations rockchip_smp_ops __initdata = { .cpu_die = rockchip_cpu_die, #endif }; + CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp", &rockchip_smp_ops);