Skip to contentSkip to conversation

clocksource: use the correct base address to setup timer 0

PATCH New H Hartley Sweeten 2 participants 4 messages May 16, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource: use the correct base address to setup timer 0

The static variable clksrc_base was removed by:

commit 3f3808c30612334e38e0641024d2c020c0eda7d4

Use the base address passed to sp804_clocksource_init() when doing the setup for timer 0.

---

arch/arm/common/timer-sp.c +4 -4
index 27f7c22..445b05e 100644
@@ -35,11 +35,11 @@
 void __init sp804_clocksource_init(void __iomem *base)
 {
 	/* setup timer 0 as free-running clocksource */
-	writel(0, clksrc_base + TIMER_CTRL);
-	writel(0xffffffff, clksrc_base + TIMER_LOAD);
-	writel(0xffffffff, clksrc_base + TIMER_VALUE);
+	writel(0, base + TIMER_CTRL);
+	writel(0xffffffff, base + TIMER_LOAD);
+	writel(0xffffffff, base + TIMER_VALUE);
 	writel(TIMER_CTRL_32BIT | TIMER_CTRL_ENABLE | TIMER_CTRL_PERIODIC,
-		clksrc_base + TIMER_CTRL);
+		base + TIMER_CTRL);
 
 	clocksource_mmio_init(base + TIMER_VALUE, "timer3",
 		TIMER_FREQ_KHZ * 1000, 200, 32, clocksource_mmio_readl_down);
#1 lore raw

PATCH 1/1 clocksource: use the correct base address to setup timer 0

Quoted 9 lines · H Hartley Sweeten

The static variable clksrc_base was removed by:

commit 3f3808c30612334e38e0641024d2c020c0eda7d4

Use the base address passed to sp804_clocksource_init() when doing the setup for timer 0.

This has already been fixed.

#2 lore raw

PATCH 1/1 clocksource: use the correct base address to setup timer 0

Quoted 5 lines · Russell King
Quoted 4 lines · H Hartley Sweeten

The static variable clksrc_base was removed by:

commit 3f3808c30612334e38e0641024d2c020c0eda7d4

Quoted 7 lines
Quoted 5 lines

Use the base address passed to sp804_clocksource_init() when doing the setup for timer 0.

This has already been fixed.

Ok. Thanks for the info.

Hartley

#3 lore raw

PATCH 1/1 clocksource: use the correct base address to setup timer 0

Quoted 9 lines · H Hartley Sweeten
Quoted 8 lines · Russell King
Quoted 7 lines · H Hartley Sweeten

The static variable clksrc_base was removed by:

commit 3f3808c30612334e38e0641024d2c020c0eda7d4

Use the base address passed to sp804_clocksource_init() when doing the setup for timer 0.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

This has already been fixed.

Ok. Thanks for the info.

I'm about to repost the entire series.