diff options
author | Simon Glass <sjg@chromium.org> | 2019-11-14 12:57:30 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-02 18:23:13 -0500 |
commit | 1045315df0f1bed617f0ee01379a10f543cec501 (patch) | |
tree | 3e76715bb70bfe6019e0b2bbb7f665b5b7830b8d /include | |
parent | f0143a86af1cafff17ac9893015374f0f2f6ae06 (diff) | |
download | u-boot-1045315df0f1bed617f0ee01379a10f543cec501.zip u-boot-1045315df0f1bed617f0ee01379a10f543cec501.tar.gz u-boot-1045315df0f1bed617f0ee01379a10f543cec501.tar.bz2 |
common: Move get_ticks() function out of common.h
This function belongs in time.h so move it over and add a comment.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 7 | ||||
-rw-r--r-- | include/time.h | 10 |
2 files changed, 12 insertions, 5 deletions
diff --git a/include/common.h b/include/common.h index e68bed6..cc5f13e 100644 --- a/include/common.h +++ b/include/common.h @@ -3,8 +3,8 @@ * Common header file for U-Boot * * This file still includes quite a bit of stuff that should be in separate - * headers like command.h, cpu.h and timer.h. Please think before adding more - * things. Patches to remove things are welcome. + * headers like command.h and cpu.h. Please think before adding more things. + * Patches to remove things are welcome. * * (C) Copyright 2000-2009 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. @@ -281,9 +281,6 @@ enum { */ int cleanup_before_linux_select(int flags); -/* arch/$(ARCH)/lib/ticks.S */ -uint64_t get_ticks(void); - /* lib/uuid.c */ #include <uuid.h> diff --git a/include/time.h b/include/time.h index 875a2b2..71446c3 100644 --- a/include/time.h +++ b/include/time.h @@ -103,4 +103,14 @@ void wait_ticks(unsigned long ticks); */ unsigned long timer_get_us(void); +/** + * get_ticks() - Get the current tick value + * + * This is an internal value used by the timer on the system. Ticks increase + * monotonically at the rate given by get_tbclk(). + * + * @return current tick value + */ +uint64_t get_ticks(void); + #endif /* _TIME_H */ |