diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2021-03-10 09:47:56 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-03-17 11:55:30 +0100 |
commit | 5f129c98629190827dcd387ac79e0076bbc0eb25 (patch) | |
tree | decd99b692c7961bef370561eee842b3d24dabf7 /include | |
parent | 10349680225215a4f809e597f67cc3260c68ea75 (diff) | |
download | barebox-5f129c98629190827dcd387ac79e0076bbc0eb25.tar.gz barebox-5f129c98629190827dcd387ac79e0076bbc0eb25.tar.xz |
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 <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/sched.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sched.h b/include/sched.h new file mode 100644 index 0000000000..43d239c3ef --- /dev/null +++ b/include/sched.h @@ -0,0 +1,12 @@ +/* SPDX License Identifier: GPL-2.0 */ +#ifndef __BAREBOX_SCHED_H_ +#define __BAREBOX_SCHED_H_ + +#include <poller.h> + +static inline void resched(void) +{ + poller_call(); +} + +#endif |