Skip to contentSkip to conversation

ARM: exynos: mct: cache mct upper count

PATCH New Mandeep Singh Baines 1 participant 1 message Sep 5, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: exynos: mct: cache mct upper count

Saves one register read.

BUG=none
TEST=See below.

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
CC Sonny Rao <[email protected]>
CC Olof Johansson <[email protected]>
CC Kukjin Kim <[email protected]>
CC Russell King <[email protected]>
CC linux-arm-kernel at lists.infradead.org
CC linux-samsung-soc at vger.kernel.org
---
 arch/arm/mach-exynos/mct.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-exynos/mct.c +2 -2
index b601fb8..2bbd533 100644
@@ -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;
Signature · 1 line
1.7.7.3