diff options
Diffstat (limited to 'include/sched.h')
-rw-r--r-- | include/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sched.h b/include/sched.h index 43d239c3ef..57be1678fd 100644 --- a/include/sched.h +++ b/include/sched.h @@ -2,11 +2,14 @@ #ifndef __BAREBOX_SCHED_H_ #define __BAREBOX_SCHED_H_ +#include <bthread.h> #include <poller.h> static inline void resched(void) { poller_call(); + if (!IS_ENABLED(CONFIG_POLLER) || !poller_active) + bthread_reschedule(); } #endif |