Skip to contentSkip to conversation

ARM: fix regression in IXP4xx clocksource

PATCH New Krzysztof Halasa 1 participant 1 message Jul 15, 2011

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

PATCH 1/1 ARM: fix regression in IXP4xx clocksource

From: Richard Cochran <[email protected]>

Commit 234b6ceddb4fc2a4bc5b9a7670f070f6e69e0868

clocksource: convert ARM 32-bit up counting clocksources

broke the build for ixp4xx and made big endian operation impossible. This commit restores the original behaviour.

arch/arm/mach-ixp4xx/common.c +8 -2
index 74ed81a..0777257 100644
@@ -419,14 +419,20 @@ static void notrace ixp4xx_update_sched_clock(void)
 /*
  * clocksource
  */
+
+static cycle_t ixp4xx_clocksource_read(struct clocksource *c)
+{
+	return *IXP4XX_OSTS;
+}
+
 unsigned long ixp4xx_timer_freq = IXP4XX_TIMER_FREQ;
 EXPORT_SYMBOL(ixp4xx_timer_freq);
 static void __init ixp4xx_clocksource_init(void)
 {
 	init_sched_clock(&cd, ixp4xx_update_sched_clock, 32, ixp4xx_timer_freq);
 
-	clocksource_mmio_init(&IXP4XX_OSTS, "OSTS", ixp4xx_timer_freq, 200, 32,
-			clocksource_mmio_readl_up);
+	clocksource_mmio_init(NULL, "OSTS", ixp4xx_timer_freq, 200, 32,
+			ixp4xx_clocksource_read);
 }
 
 /*
Signature · 1 line
Krzysztof Halasa