diff options
author | Simon Glass | 2019-11-14 12:57:30 -0700 |
---|---|---|
committer | Tom Rini | 2019-12-02 18:23:13 -0500 |
commit | 1045315df0f1bed617f0ee01379a10f543cec501 (patch) | |
tree | 3e76715bb70bfe6019e0b2bbb7f665b5b7830b8d /common | |
parent | f0143a86af1cafff17ac9893015374f0f2f6ae06 (diff) |
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 'common')
-rw-r--r-- | common/autoboot.c | 1 | ||||
-rw-r--r-- | common/bootretry.c | 1 | ||||
-rw-r--r-- | common/cli_readline.c | 1 | ||||
-rw-r--r-- | common/iotrace.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/common/autoboot.c b/common/autoboot.c index b28bd6823d8..8faac2005df 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -15,6 +15,7 @@ #include <memalign.h> #include <menu.h> #include <post.h> +#include <time.h> #include <u-boot/sha256.h> #include <bootcount.h> diff --git a/common/bootretry.c b/common/bootretry.c index 47aaaa82201..dac891fbc5e 100644 --- a/common/bootretry.c +++ b/common/bootretry.c @@ -9,6 +9,7 @@ #include <cli.h> #include <env.h> #include <errno.h> +#include <time.h> #include <watchdog.h> #ifndef CONFIG_BOOT_RETRY_MIN diff --git a/common/cli_readline.c b/common/cli_readline.c index ea510ed6395..6ef7a3e5642 100644 --- a/common/cli_readline.c +++ b/common/cli_readline.c @@ -11,6 +11,7 @@ #include <common.h> #include <bootretry.h> #include <cli.h> +#include <time.h> #include <watchdog.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/common/iotrace.c b/common/iotrace.c index ba955afc942..295ee07b724 100644 --- a/common/iotrace.c +++ b/common/iotrace.c @@ -7,6 +7,7 @@ #include <common.h> #include <mapmem.h> +#include <time.h> #include <asm/io.h> #include <u-boot/crc.h> |