aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/vf610
diff options
context:
space:
mode:
authorPatrick Delaunay2018-10-05 11:33:52 +0200
committerTom Rini2018-10-10 13:35:09 -0400
commit6180ea7e663893cb7330219367252cba471bf225 (patch)
treea35c6b51dcf5d03740f25a8a5c922f99885010ec /arch/arm/cpu/armv7/vf610
parentaa33fe86954e342116648a702d34bb0456bdc4a7 (diff)
arm: remove prototype for get_timer_masked
The interruption support had be removed for ARM architecture and the function get_timer_masked() is no more used except in some the timer.c files. This patch clean each timer.c which implement this function and remove the associated prototype in u-boot-arm.h For timer.c, I don't verify if the weak version of get_timer (in lib/time.c) can be used Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'arch/arm/cpu/armv7/vf610')
-rw-r--r--arch/arm/cpu/armv7/vf610/timer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/cpu/armv7/vf610/timer.c b/arch/arm/cpu/armv7/vf610/timer.c
index 6e1308eae06..821a279b630 100644
--- a/arch/arm/cpu/armv7/vf610/timer.c
+++ b/arch/arm/cpu/armv7/vf610/timer.c
@@ -57,14 +57,9 @@ unsigned long long get_ticks(void)
return (((unsigned long long)gd->arch.tbu) << 32) | gd->arch.tbl;
}
-ulong get_timer_masked(void)
-{
- return tick_to_time(get_ticks());
-}
-
ulong get_timer(ulong base)
{
- return get_timer_masked() - base;
+ return tick_to_time(get_ticks()) - base;
}
/* delay x useconds AND preserve advance timstamp value */