From: Simon Glass Date: Mon, 30 Sep 2019 08:40:51 -0600 Subject: [U-Boot] [PATCH 20/41] common: Move timer_get_us() function out of common.h In-Reply-To: <20190930144112.175618-1-sjg@chromium.org> References: <20190930144112.175618-1-sjg@chromium.org> Message-ID: <20190930144112.175618-21-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This function belongs in time.h so move it over and update the comment style. Signed-off-by: Simon Glass --- include/common.h | 3 --- include/time.h | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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 e740858f816..4d16f12d76a 100644 --- a/include/time.h +++ b/include/time.h @@ -94,4 +94,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 */ -- 2.23.0.444.g18eeb5a265-goog