diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2018-10-05 11:33:52 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-10-10 13:35:09 -0400 |
commit | 6180ea7e663893cb7330219367252cba471bf225 (patch) | |
tree | a35c6b51dcf5d03740f25a8a5c922f99885010ec /arch/arm/mach-omap2/timer.c | |
parent | aa33fe86954e342116648a702d34bb0456bdc4a7 (diff) | |
download | u-boot-6180ea7e663893cb7330219367252cba471bf225.tar.gz |
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/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 847f33d47d..87b674e694 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c @@ -23,6 +23,7 @@ DECLARE_GLOBAL_DATA_PTR; static struct gptimer *timer_base = (struct gptimer *)CONFIG_SYS_TIMERBASE; +static ulong get_timer_masked(void); /* * Nothing really to do with interrupts, just starts up a counter. @@ -67,7 +68,7 @@ void __udelay(unsigned long usec) } } -ulong get_timer_masked(void) +static ulong get_timer_masked(void) { /* current tick value */ ulong now = readl(&timer_base->tcrr) / (TIMER_CLOCK / CONFIG_SYS_HZ); |