From patchwork Fri Dec 18 14:17:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 7884751 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6A44B9F3CD for ; Fri, 18 Dec 2015 14:19:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9925D20254 for ; Fri, 18 Dec 2015 14:19:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CDFE0202B8 for ; Fri, 18 Dec 2015 14:19:51 +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 1a9vst-0007lk-9R; Fri, 18 Dec 2015 14:19:51 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9vs4-00077j-Ce for linux-rockchip@lists.infradead.org; Fri, 18 Dec 2015 14:19:02 +0000 Received: by mail-wm0-x233.google.com with SMTP id l126so66141543wml.0 for ; Fri, 18 Dec 2015 06:18:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=09WWLW1aApSrP+Ygn9LrWiX4Dfd00/35+uLNF4PwK/A=; b=WrjtzuvYf7+yoLMQu4einC4Qls1pVGVCPzbIK0m3wlpj0V2wLmezMXbjraCOZplrkv u+C5Gf962cvhoDAcmU5vXAmyt4+/CHAkBZTrs4qc/7fzSI0MXNCZU1azIpRQKiwFwRZj YC5ZkTlIpBSz4ePSzEsKO4EM2csEzjejDMfBc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=09WWLW1aApSrP+Ygn9LrWiX4Dfd00/35+uLNF4PwK/A=; b=bPji4OmqANdCClZ4OJcG0F7rGDM2Uvc5JeU37qbsAydHkXX1MJIu0QT6nM1fLIhsnj 5gmAChEsw0bIvZpSdj51B102NsPNZdqfxrC3LwtSA9rccrMvAj8EyR04dlqJB/ojhNgp QD2Ox0WJZVUKhXSg2PONeagLcdQ3y+uK7Rh2jLSkEi6YcKLwLtjQj0YrKb/CWvtwL/Tl j0u9CUn5iOmdBlUBIuUEM4RdmrXEqOH/ebRydaWaeR5yS9izZ1AQ97HJ2XKIQtzGPReO cYmdPSdGMHeBKiWrptiGhh6I0Ik7aXvdPiSUWEt55F4aCut/SXNGuJ3HQ1mTOctWRei+ g8Hw== X-Gm-Message-State: ALoCoQlwETlBK0q6Um3lNjOiwyTdj1UQFB1J6B3phkgoF7qZV0JDWBfxo549eNC4wbeh5c811hwQPkEkFTeYotlAMDYXvomUHA== X-Received: by 10.194.120.226 with SMTP id lf2mr4358844wjb.108.1450448319079; Fri, 18 Dec 2015 06:18:39 -0800 (PST) Received: from localhost.localdomain ([78.210.255.2]) by smtp.gmail.com with ESMTPSA id ql10sm15010027wjc.23.2015.12.18.06.18.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 06:18:38 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Subject: [PATCH 07/69] clocksource/drivers/rockchip: Remove dsb() usage Date: Fri, 18 Dec 2015 15:17:20 +0100 Message-Id: <1450448302-27429-7-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450448302-27429-1-git-send-email-daniel.lezcano@linaro.org> References: <5672CB9E.7090707@linaro.org> <1450448302-27429-1-git-send-email-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151218_061900_709150_288FA712 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , linux-kernel@vger.kernel.org, "open list:ARM/Rockchip SoC..." , mingo@kernel.org, linux-arm-kernel@lists.infradead.org, Caesar Wang 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Caesar Wang The dsb() instruction is pointless in this code. Remove it. That also fixes the ARM64 compilation issue. Signed-off-by: Daniel Lezcano Tested-by: Caesar Wang --- drivers/clocksource/rockchip_timer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clocksource/rockchip_timer.c b/drivers/clocksource/rockchip_timer.c index b14716b6..8c77a52 100644 --- a/drivers/clocksource/rockchip_timer.c +++ b/drivers/clocksource/rockchip_timer.c @@ -49,14 +49,12 @@ static inline void __iomem *rk_base(struct clock_event_device *ce) static inline void rk_timer_disable(struct clock_event_device *ce) { writel_relaxed(TIMER_DISABLE, rk_base(ce) + TIMER_CONTROL_REG); - dsb(); } static inline void rk_timer_enable(struct clock_event_device *ce, u32 flags) { writel_relaxed(TIMER_ENABLE | TIMER_INT_UNMASK | flags, rk_base(ce) + TIMER_CONTROL_REG); - dsb(); } static void rk_timer_update_counter(unsigned long cycles, @@ -64,13 +62,11 @@ static void rk_timer_update_counter(unsigned long cycles, { writel_relaxed(cycles, rk_base(ce) + TIMER_LOAD_COUNT0); writel_relaxed(0, rk_base(ce) + TIMER_LOAD_COUNT1); - dsb(); } static void rk_timer_interrupt_clear(struct clock_event_device *ce) { writel_relaxed(1, rk_base(ce) + TIMER_INT_STATUS); - dsb(); } static inline int rk_timer_set_next_event(unsigned long cycles,