diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-25 10:56:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-26 08:41:02 +0200 |
commit | 73d2e0b7343d6a22d4b47499a3edf209cea60ccc (patch) | |
tree | 4d83149234d9f08d1381aca1a99cd68b215704fe /include/common.h | |
parent | 8628b5881418c23a22d72319b76ab04b7ec644f9 (diff) | |
download | barebox-73d2e0b7343d6a22d4b47499a3edf209cea60ccc.tar.gz barebox-73d2e0b7343d6a22d4b47499a3edf209cea60ccc.tar.xz |
startup: Fix do_autoboot_countdown() running multiple times
The comment above do_autoboot_countdown() states: "This function can be
called multiple times, it is executed only the first time.". Since
1973892533 ("startup: don't clobber original autoboot state") This is no
longer the case. Bring back the old and documented behaviour.
Fixes: 1973892533 ("startup: don't clobber original autoboot state")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index ce16ff83af..ceb0b358bd 100644 --- a/include/common.h +++ b/include/common.h @@ -88,6 +88,7 @@ enum autoboot_state { AUTOBOOT_ABORT, AUTOBOOT_MENU, AUTOBOOT_BOOT, + AUTOBOOT_UNKNOWN, }; void set_autoboot_state(enum autoboot_state autoboot); |