diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2021-03-10 09:47:59 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-03-22 10:46:47 +0100 |
commit | ce45167dbcb35fb6b8a45869084ab1505fb4a3d4 (patch) | |
tree | 912b7e63f77ddc961e90c4e623aa5fac93722d6e /commands/Kconfig | |
parent | 64242776de86d46d914aa8f3ab6cfee68420ca6a (diff) | |
download | barebox-ce45167dbcb35fb6b8a45869084ab1505fb4a3d4.tar.gz |
commands: add new bthread test command
This command is meant to show how to use the bthread API as well as
help with debugging. It's a bit overcomplicated to exercise aspects
of the API, like scheduling from both secondary and primary thread.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r-- | commands/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig index 520ad4b1de..6d84c956e5 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -253,6 +253,15 @@ config CMD_POLLER is_timeout() or one of the various delay functions. The poller command prints informations about registered pollers. +config CMD_BTHREAD + tristate + prompt "bthread" + depends on BTHREAD + help + barebox threads are cooperatively-scheduled (green) threads that are running in + the background whenever code executes is_timeout() or one of the various delay + functions. The bthread command prints informations about registered bthreads. + config CMD_SLICE tristate prompt "slice" |