From: Simon Glass Date: Thu, 14 Nov 2019 19:57:29 +0000 (-0700) Subject: common: Move timer_get_us() function out of common.h X-Git-Tag: v2020.01-rc4~1^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0143a86af1cafff17ac9893015374f0f2f6ae06;p=pandora-u-boot.git common: Move timer_get_us() function out of common.h This function belongs in time.h so move it over and update the comment style. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- diff --git a/include/common.h b/include/common.h index 091b54787f7..e68bed64078 100644 --- a/include/common.h +++ b/include/common.h @@ -251,9 +251,6 @@ void irq_install_handler(int, interrupt_handler_t *, void *); void irq_free_handler (int); void reset_timer (void); -/* Return value of monotonic microsecond timer */ -unsigned long timer_get_us(void); - void enable_interrupts (void); int disable_interrupts (void); diff --git a/include/time.h b/include/time.h index 31d386729ef..875a2b293ed 100644 --- a/include/time.h +++ b/include/time.h @@ -96,4 +96,11 @@ ulong ticks2usec(unsigned long ticks); */ void wait_ticks(unsigned long ticks); +/** + * timer_get_us() - Get monotonic microsecond timer + * + * @return value of monotonic microsecond timer + */ +unsigned long timer_get_us(void); + #endif /* _TIME_H */