diff options
| author | Simon Glass <[email protected]> | 2019-11-14 12:57:27 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-12-02 18:23:11 -0500 |
| commit | 036a017f79f6c485605c555b3a8733debb72d995 (patch) | |
| tree | eddaffdc3c686df9e6d3116f4a9a3142784e1e90 /include | |
| parent | 6887c5bed9d7dc26f8dbd196a5878c9c4a128d94 (diff) | |
common: Move wait_ticks functions out of common.h
This function belongs in time.h so move it over and add a comment.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/common.h | 1 | ||||
| -rw-r--r-- | include/time.h | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index 20d143deb81..091b54787f7 100644 --- a/include/common.h +++ b/include/common.h @@ -286,7 +286,6 @@ int cleanup_before_linux_select(int flags); /* arch/$(ARCH)/lib/ticks.S */ uint64_t get_ticks(void); -void wait_ticks (unsigned long); /* lib/uuid.c */ #include <uuid.h> diff --git a/include/time.h b/include/time.h index a1bdefc164b..31d386729ef 100644 --- a/include/time.h +++ b/include/time.h @@ -86,4 +86,14 @@ ulong usec2ticks(unsigned long usec); */ ulong ticks2usec(unsigned long ticks); +/** + * wait_ticks() - waits a given number of ticks + * + * This is an internal function typically used to implement udelay() and + * similar. Normally you should use udelay() or mdelay() instead. + * + * @ticks: Number of ticks to wait + */ +void wait_ticks(unsigned long ticks); + #endif /* _TIME_H */ |
