diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-16 12:28:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-13 13:55:23 +0200 |
commit | 1094017c068188226dcbedff8d392d22cb14b84a (patch) | |
tree | 1de9e9a3c7f25d70c4b3fc32a7b53c66737f3de7 /lib | |
parent | 04e54a0cf635de24656e7818cddb25333d284c79 (diff) | |
download | barebox-1094017c068188226dcbedff8d392d22cb14b84a.tar.gz barebox-1094017c068188226dcbedff8d392d22cb14b84a.tar.xz |
ratp: Switch to workqueues
This switches running barebox commands in ratp to a context where it's
safe to do so: In a work queue.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/readline.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/readline.c b/lib/readline.c index 3d16c1838c..e5370f9c7b 100644 --- a/lib/readline.c +++ b/lib/readline.c @@ -3,7 +3,6 @@ #include <init.h> #include <libbb.h> #include <poller.h> -#include <ratp_bb.h> #include <xfuncs.h> #include <complete.h> #include <linux/ctype.h> @@ -200,11 +199,8 @@ int readline(const char *prompt, char *buf, int len) puts (prompt); while (1) { - while (!tstc()) { + while (!tstc()) poller_call(); - if (IS_ENABLED(CONFIG_CONSOLE_RATP)) - barebox_ratp_command_run(); - } ichar = read_key(); |