sweep through entire page table to free up intermediate tables
[lunaix-os.git] / lunaix-os / kernel / device / poll.c
index 493d5d3ae8b5c820fc67f8e85cd36c275edc2d73..159c2bb87cffb896cb6312220fb5cae6421df978 100644 (file)
@@ -7,6 +7,7 @@
 #include <lunaix/spike.h>
 #include <lunaix/syscall.h>
 #include <lunaix/syscall_utils.h>
+#include <lunaix/kpreempt.h>
 
 #define MAX_POLLER_COUNT 16
 
@@ -153,7 +154,7 @@ static void
 __wait_until_event()
 {
     block_current_thread();
-    sched_pass();
+    yield_current();
 }
 
 void