X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/28c176b668c841a3b7fb093faccf0efa39257603..a8e9a00d034efa9e6b483c4a3decddf9f9686db2:/lunaix-os/kernel/device/poll.c?ds=inline diff --git a/lunaix-os/kernel/device/poll.c b/lunaix-os/kernel/device/poll.c index 493d5d3..159c2bb 100644 --- a/lunaix-os/kernel/device/poll.c +++ b/lunaix-os/kernel/device/poll.c @@ -7,6 +7,7 @@ #include #include #include +#include #define MAX_POLLER_COUNT 16 @@ -153,7 +154,7 @@ static void __wait_until_event() { block_current_thread(); - sched_pass(); + yield_current(); } void