From patchwork Fri Dec 18 14:18:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 58698 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp1060477lbb; Fri, 18 Dec 2015 06:26:48 -0800 (PST) X-Received: by 10.67.4.42 with SMTP id cb10mr5598545pad.65.1450448807929; Fri, 18 Dec 2015 06:26:47 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y81si20274474pfi.240.2015.12.18.06.26.47; Fri, 18 Dec 2015 06:26:47 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933191AbbLRO0q (ORCPT + 29 others); Fri, 18 Dec 2015 09:26:46 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:34432 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933150AbbLROTg (ORCPT ); Fri, 18 Dec 2015 09:19:36 -0500 Received: by mail-wm0-f50.google.com with SMTP id l126so67523265wml.1 for ; Fri, 18 Dec 2015 06:19:36 -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=Mc+rv6bHn10r7tP+azXmQwao2ghERyaLp3pgI8r2u1U=; b=LmuyEMNIjr7pL7wq1e6xtJOrMaqX9zbPN8kD8LrjdgtW4xAw9fUq7jTOz+60JydOn7 B18YJ8+vWKoVglb/RbtpvhntsGbM/6q5OiMtyFqQvFuWE0EoSpOasmibcHOszaM2ii3D lwrcVEZfaS9ubMf/UXhk9Ph8E8q6M3d/wBW3Y= 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=Mc+rv6bHn10r7tP+azXmQwao2ghERyaLp3pgI8r2u1U=; b=d4sDspTZttWA5FMLE/yMAMuoxRzWneaKvTc7njkqIqRtRdgO4oR/cD/D+qW5/WeyZu epLws6JGRIvrMSCwVf7mxmNtXr3dOLK2JHMTA6r+SwJZdLb4R6jKfKyWl6TS9f8n+Ybx /FrMjVycvAdo9I/0bVpvAZ79hDOslF/9puWvy15nOcWWvkMPHWGtEdii3gpIFvsMBArR OVWWWPpBcO+H2dBcksNn5EnFrT6jj5xrBmlYoD5Ny7THrsIlaDDaP+w+fXWkOymK3x3T NyPQtokAtyIl7zemhSuFsWsbWLctGmYcz2DlpXCaC3oY03vJLsvDGFz9QIFQCIlk1abC paVw== X-Gm-Message-State: ALoCoQl22pBTRPUJe+tpQXCaVyCRcwgxnIbHiA/dRJK/fy/7IENP6rbT4jmwJxTvhdexCpfcg4CNCy17b+YJQgMxRzePMMQE8w== X-Received: by 10.194.172.35 with SMTP id az3mr5021021wjc.64.1450448375628; Fri, 18 Dec 2015 06:19:35 -0800 (PST) Received: from localhost.localdomain ([78.210.255.2]) by smtp.gmail.com with ESMTPSA id ql10sm15010027wjc.23.2015.12.18.06.19.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 06:19:35 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mingo@kernel.org, Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp (moderated list:H8/300 ARCHITECTURE) Subject: [PATCH 52/69] clocksource/drivers/h8300_timer16: Remove pointless lock Date: Fri, 18 Dec 2015 15:18:05 +0100 Message-Id: <1450448302-27429-52-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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The lock in the timer16_clocksource_read is not needed, remove it. Signed-off-by: Daniel Lezcano --- drivers/clocksource/h8300_timer16.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/clocksource/h8300_timer16.c b/drivers/clocksource/h8300_timer16.c index 129dca0..f396605 100644 --- a/drivers/clocksource/h8300_timer16.c +++ b/drivers/clocksource/h8300_timer16.c @@ -30,7 +30,6 @@ struct timer16_priv { unsigned char imfa; unsigned char imiea; unsigned char ovf; - raw_spinlock_t lock; struct clk *clk; }; @@ -75,13 +74,10 @@ static inline struct timer16_priv *cs_to_priv(struct clocksource *cs) static cycle_t timer16_clocksource_read(struct clocksource *cs) { struct timer16_priv *p = cs_to_priv(cs); - unsigned long flags, raw; - unsigned long value; + unsigned long raw, value; - raw_spin_lock_irqsave(&p->lock, flags); value = p->total_cycles; raw = timer16_get_counter(p); - raw_spin_unlock_irqrestore(&p->lock, flags); return value + raw; }