From 6a853dbcc02ba26d8b85d26be9763464c6bfe63e Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 2 Jun 2019 21:02:10 +0200 Subject: 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 --- lib/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/time.c') diff --git a/lib/time.c b/lib/time.c index 9c55da6f1b3..f5751ab162b 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(); -- cgit v1.2.3