summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-06-02 21:02:10 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-06-04 22:09:26 +0200
commit6a853dbcc02ba26d8b85d26be9763464c6bfe63e (patch)
tree5a11796dc7c0feedbe33424b84fec4cb19e266cc /lib
parent66ca24a9a05aa094bcdcf0784d8cc5911dc2f725 (diff)
lib: time: export usec_to_tick()
In the UEFI Stall() boottime service we need access to usec_to_tick(). Export the function. Remove redundant implementation in arch/arm/mach-rockchip/rk_timer.c. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/time.c b/lib/time.c
index 9c55da6f1b..f5751ab162 100644
--- a/lib/time.c
+++ b/lib/time.c
@@ -139,7 +139,7 @@ unsigned long __weak notrace timer_get_us(void)
return tick_to_time(get_ticks() * 1000);
}
-static uint64_t usec_to_tick(unsigned long usec)
+uint64_t usec_to_tick(unsigned long usec)
{
uint64_t tick = usec;
tick *= get_tbclk();