From 5f129c98629190827dcd387ac79e0076bbc0eb25 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Wed, 10 Mar 2021 09:47:56 +0100 Subject: common: poller: replace explicit calls to poller_call() with resched() We won't replace pollers with bthreads completely over night. To make migration easier, replace explicit calls to poller_call with a new resched() function. This can be made to call bthread_reschedule() in future and eventually replaced with bthread_reschedule() once pollers are removed. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- lib/readline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/readline.c b/lib/readline.c index e5370f9c7b..25aa99b95e 100644 --- a/lib/readline.c +++ b/lib/readline.c @@ -2,7 +2,7 @@ #include #include #include -#include +#include #include #include #include @@ -200,7 +200,7 @@ int readline(const char *prompt, char *buf, int len) while (1) { while (!tstc()) - poller_call(); + resched(); ichar = read_key(); -- cgit v1.2.3