aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-11-14 12:57:29 -0700
committerTom Rini <trini@konsulko.com>2019-12-02 18:23:11 -0500
commitf0143a86af1cafff17ac9893015374f0f2f6ae06 (patch)
tree28bf1fea446f6e233bfb653142188f1221e1d286
parente3107d159c180698bd45511afb76e9ab8f9957fb (diff)
downloadu-boot-f0143a86af1cafff17ac9893015374f0f2f6ae06.zip
u-boot-f0143a86af1cafff17ac9893015374f0f2f6ae06.tar.gz
u-boot-f0143a86af1cafff17ac9893015374f0f2f6ae06.tar.bz2
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 <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r--include/common.h3
-rw-r--r--include/time.h7
2 files changed, 7 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h
index 091b547..e68bed6 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 31d3867..875a2b2 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 */