|
|
1.1 root 1: /* wakeup.c - wakeup */
2:
3: #include <conf.h>
4: #include <kernel.h>
5: #include <proc.h>
6: #include <q.h>
7: #include <sleep.h>
8:
9: /*------------------------------------------------------------------------
10: * wakeup -- called by clock interrupt dispatcher to awaken processes
11: *------------------------------------------------------------------------
12: */
13: INTPROC wakeup()
14: {
15: while (nonempty(clockq) && firstkey(clockq) <= 0)
16: ready(getfirst(clockq),RESCHNO);
17: if ( slnempty = nonempty(clockq) )
18: sltop = (short *) & q[q[clockq].qnext].qkey;
19: resched();
20: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.