Rev 125 | Rev 404 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 125 | Rev 239 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #include <func.h> |
35 | #include <func.h> |
36 | #include <cpu.h> |
36 | #include <cpu.h> |
37 | #include <print.h> |
37 | #include <print.h> |
38 | #include <arch/asm.h> |
38 | #include <arch/asm.h> |
39 | #include <arch.h> |
39 | #include <arch.h> |
- | 40 | #include <print.h> |
|
40 | 41 | ||
41 | 42 | ||
42 | /** Initialize timeouts |
43 | /** Initialize timeouts |
43 | * |
44 | * |
44 | * Initialize kernel timeouts. |
45 | * Initialize kernel timeouts. |
Line 129... | Line 130... | ||
129 | } |
130 | } |
130 | sum += hlp->ticks; |
131 | sum += hlp->ticks; |
131 | spinlock_unlock(&hlp->lock); |
132 | spinlock_unlock(&hlp->lock); |
132 | l = l->next; |
133 | l = l->next; |
133 | } |
134 | } |
- | 135 | ||
134 | m = l->prev; |
136 | m = l->prev; |
135 | list_prepend(&t->link, m); /* avoid using l->prev */ |
137 | list_prepend(&t->link, m); /* avoid using l->prev */ |
136 | 138 | ||
137 | /* |
139 | /* |
138 | * Adjust t->ticks according to ticks accumulated in h's predecessors. |
140 | * Adjust t->ticks according to ticks accumulated in h's predecessors. |