Skip to contentSkip to conversation

PXA: Fix up the timer

PATCH New Marek Vasut 1 participant 1 message Aug 8, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PXA: Fix up the timer

Add missing functions into the timer, so CONFIG_CMD_TIME works.

Cc Albert Aribaud <[email protected]>
---
 arch/arm/cpu/pxa/timer.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
arch/arm/cpu/pxa/timer.c +6 -1
index a8f7462..d394f79 100644
@@ -78,9 +78,14 @@ unsigned long long get_ticks(void)
 	return timestamp;
 }
 
+ulong get_timer_masked()
+{
+	return tick_to_time(get_ticks());
+}
+
 ulong get_timer(ulong base)
 {
-	return tick_to_time(get_ticks()) - base;
+	return get_timer_masked() - base;
 }
 
 void __udelay(unsigned long usec)
Signature · 1 line
1.7.10.4