From patchwork Fri Jun 5 04:47:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 6550901 Return-Path: X-Original-To: patchwork-linux-rockchip@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 3904EC0020 for ; Fri, 5 Jun 2015 04:49:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61F4920747 for ; Fri, 5 Jun 2015 04:49:07 +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 8340D20738 for ; Fri, 5 Jun 2015 04:49:06 +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 1Z0jZ4-0006rZ-4X; Fri, 05 Jun 2015 04:49:06 +0000 Received: from mail-pd0-f194.google.com ([209.85.192.194]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z0jYd-0006fA-Ar; Fri, 05 Jun 2015 04:48:40 +0000 Received: by pdev10 with SMTP id v10so743366pde.3; Thu, 04 Jun 2015 21:48:18 -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=3D0eMt1DyFQ8npqcHnJeOg5QZRw3X22WwVNkK0eHDqI=; b=OiehY9XeVAohTqXvTCdSB+R3sbGyfl73rlCYcdNhlAm/YJWxhZ6rwiZpzw2UzMmhLj /cu4bh+64qokEp7Gm/+tCLvdcoNoL+jYyIBoNYjP9MbH/8+d/MMADV68rzBp4r5Sef3F i/2rSsAwSBvt90+J+eVGr4VGe5U2NhKtxnbVghKglfx4rGGEcm2NKsmZrHG3pxE1qGkP gAbrevvHRpfgTl3lQigYVIhIYLJB99xUyDdDr51O4dwxQR172kJ4O6j/EbYVq14xf/3D iXpGboBESjvMRUCqUiGpba9fEZuHkUBvL+yEgeAN46kLRcXL/F6fZX4wlWCHQGpFCPWC GVgQ== X-Received: by 10.66.65.171 with SMTP id y11mr2803125pas.74.1433479698161; Thu, 04 Jun 2015 21:48:18 -0700 (PDT) Received: from localhost.localdomain ([191.101.57.89]) by mx.google.com with ESMTPSA id c10sm5209803pbu.81.2015.06.04.21.48.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 21:48:17 -0700 (PDT) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH 3/3] ARM: rockchip: fix the SMP code style Date: Fri, 5 Jun 2015 12:47:57 +0800 Message-Id: <1433479677-18086-4-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433479677-18086-1-git-send-email-wxt@rock-chips.com> References: <1433479677-18086-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150604_214839_456031_D9566DF8 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. 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-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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 arch/arm/mach-rockchip/platsmp.c Signed-off-by: Caesar Wang --- arch/arm/mach-rockchip/platsmp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c index 978c357..7eea805 100644 --- a/arch/arm/mach-rockchip/platsmp.c +++ b/arch/arm/mach-rockchip/platsmp.c @@ -104,7 +104,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; } } @@ -128,7 +128,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; } @@ -147,7 +147,7 @@ static int __cpuinit rockchip_boot_secondary(unsigned int cpu, * */ udelay(10); writel(virt_to_phys(rockchip_secondary_startup), - sram_base_addr + 8); + sram_base_addr + 8); writel(0xDEADBEAF, sram_base_addr + 4); dsb_sev(); } @@ -326,7 +326,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