Message ID | 1346880973-31519-1-git-send-email-msb@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id C02DEDF28C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 5 Sep 2012 21:38:57 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T9NGm-0001Vi-VT; Wed, 05 Sep 2012 21:36:21 +0000 Received: from mail-we0-f201.google.com ([74.125.82.201]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T9NGj-0001Uo-8m for linux-arm-kernel@lists.infradead.org; Wed, 05 Sep 2012 21:36:18 +0000 Received: by weyx56 with SMTP id x56so58890wey.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 05 Sep 2012 14:36:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=UCTFj6f0JdMkVw2Bze+g5cEgG9UgcMEoqCMLMla0aJk=; b=LomyWwp9IwVhQCuL3ZzFgNxVUf9XDvdBvqR+UiwwwQzfoRU1A9OdL/3hew19S+bkHW vfs2YGBaDdcO0jFq9gyMdJqfvMiMt0TSGX9LKSOWIDNquJ14ld4ZMxhFYsy74DhGfnFt YMhAO5ByfOdDn3POHjYDoLq2i0aDzFa5iNOx3QB+DQZJ4plPX57xnxOThbti9UMDl0Nx KqSMl100z1jwk81XlvWI0HX3SGXpnev8L0ES41x/T3jOE1shmI1zmIZ8gVX5HITAwWr1 VRzSFbLQtRLa4rwYWIzbR7CVQ4uv9LeP2Dl8L6eGqDnSiDRnFjli235/SV6i3An3mc4L z9hg== Received: by 10.216.193.26 with SMTP id j26mr1207650wen.1.1346880975714; Wed, 05 Sep 2012 14:36:15 -0700 (PDT) Received: by 10.216.193.26 with SMTP id j26mr1207634wen.1.1346880975617; Wed, 05 Sep 2012 14:36:15 -0700 (PDT) Received: from hpza9.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id i17si88768wiw.0.2012.09.05.14.36.15 (version=TLSv1/SSLv3 cipher=AES128-SHA); Wed, 05 Sep 2012 14:36:15 -0700 (PDT) Received: from nitrous.mtv.corp.google.com (nitrous.mtv.corp.google.com [172.22.73.72]) by hpza9.eem.corp.google.com (Postfix) with ESMTP id 3A0465C0060; Wed, 5 Sep 2012 14:36:15 -0700 (PDT) Received: by nitrous.mtv.corp.google.com (Postfix, from userid 55285) id 9A850809C5; Wed, 5 Sep 2012 14:36:14 -0700 (PDT) From: Mandeep Singh Baines <msb@chromium.org> To: Kukjin Kim <kgene.kim@samsung.com>, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: exynos: mct: cache mct upper count Date: Wed, 5 Sep 2012 14:36:13 -0700 Message-Id: <1346880973-31519-1-git-send-email-msb@chromium.org> X-Mailer: git-send-email 1.7.7.3 X-Gm-Message-State: ALoCoQn78p1KPPIhaSTawSfR1pyEKrAaCJ1ObZQzB16VufT6lqJzVAiZwW44jOxT2tbuAVyUCdy2DALCvRwsEpIkcul2DAifxC+rR8yKpPn3oaoQPUnmw7tuUziFxeRVa5UCzzgyFNfamcthjYXIiwTRhkX84+hBJM6wdebaExSxvh1vcSOfpXynzPNSpSETovHJHKzBcExysgmGUal0nFd6z9sDcfaiRw== X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.201 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linux-samsung-soc@vger.kernel.org, Russell King <linux@arm.linux.org.uk>, Mandeep Singh Baines <msb@chromium.org>, Olof Johansson <olofj@chromium.org>, Sonny Rao <sonnyrao@chromium.org>, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
diff --git a/arch/arm/mach-exynos/mct.c b/arch/arm/mach-exynos/mct.c index b601fb8..2bbd533 100644 --- a/arch/arm/mach-exynos/mct.c +++ b/arch/arm/mach-exynos/mct.c @@ -128,8 +128,8 @@ static void exynos4_mct_frc_start(u32 hi, u32 lo) static cycle_t exynos4_frc_read(struct clocksource *cs) { - unsigned int lo, hi; - u32 hi2 = __raw_readl(EXYNOS4_MCT_G_CNT_U); + u32 lo, hi; + static u32 hi2; do { hi = hi2;
Saves one register read. Before (perf report): 1.40% [k] exynos4_frc_read | |--87.20%-- ktime_get_ts | | | |--93.60%-- posix_ktime_get_ts After (perf report): 1.00% [k] exynos4_frc_read | |--88.61%-- ktime_get_ts | | | |--92.70%-- posix_ktime_get_ts Signed-off-by: Mandeep Singh Baines <msb@chromium.org> CC: Sonny Rao <sonnyrao@chromium.org> CC: Olof Johansson <olofj@chromium.org> CC: Kukjin Kim <kgene.kim@samsung.com> CC: Russell King <linux@arm.linux.org.uk> CC: linux-arm-kernel@lists.infradead.org CC: linux-samsung-soc@vger.kernel.org --- arch/arm/mach-exynos/mct.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)