diff mbox series

[U-Boot,v2,20/41] common: Move timer_get_us() function out of common.h

Message ID 20191108125120.v2.20.Iaa061cc6a0a856a9300b6b03c2f5bb21d81565ff@changeid
State Changes Requested
Delegated to: Tom Rini
Headers show
Series common: Further reduce common.h | expand

Commit Message

Simon Glass Nov. 8, 2019, 7:53 p.m. UTC
This function belongs in time.h so move it over and update the comment
style.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 include/common.h | 3 ---
 include/time.h   | 7 +++++++
 2 files changed, 7 insertions(+), 3 deletions(-)

Comments

Tom Rini Nov. 11, 2019, 2:39 p.m. UTC | #1
On Fri, Nov 08, 2019 at 12:53:27PM -0700, Simon Glass wrote:

> 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>
diff mbox series

Patch

diff --git a/include/common.h b/include/common.h
index 091b54787f..e68bed6407 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 0b3835f053..14d3f4298b 100644
--- a/include/time.h
+++ b/include/time.h
@@ -95,4 +95,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 */