From: Marek Vasut Date: Wed, 8 Aug 2012 12:52:46 +0200 Subject: [U-Boot] [PATCH] PXA: Fix up the timer Message-ID: <1344423166-18656-1-git-send-email-marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add missing functions into the timer, so CONFIG_CMD_TIME works. Signed-off-by: Marek Vasut Cc: Albert Aribaud --- arch/arm/cpu/pxa/timer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/pxa/timer.c b/arch/arm/cpu/pxa/timer.c index a8f7462..d394f79 100644 --- a/arch/arm/cpu/pxa/timer.c +++ b/arch/arm/cpu/pxa/timer.c @@ -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) -- 1.7.10.4