#include <lunaix/ds/waitq.h>
#include <lunaix/process.h>
-#include <lunaix/sched.h>
#include <lunaix/spike.h>
void
llist_append(&queue->waiters, ¤t_wq->waiters);
- // FIXME centralize the state change.
- __current->state = PS_BLOCKED;
+ block_current();
sched_yieldk();
}