Rev 3022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 111... | Line 111... | ||
111 | ipl = interrupts_disable(); |
111 | ipl = interrupts_disable(); |
112 | spinlock_lock(&CPU->timeoutlock); |
112 | spinlock_lock(&CPU->timeoutlock); |
113 | spinlock_lock(&t->lock); |
113 | spinlock_lock(&t->lock); |
114 | 114 | ||
115 | if (t->cpu) |
115 | if (t->cpu) |
116 | panic("t->cpu != 0"); |
116 | panic("Unexpected: t->cpu != 0."); |
117 | 117 | ||
118 | t->cpu = CPU; |
118 | t->cpu = CPU; |
119 | t->ticks = us2ticks(time); |
119 | t->ticks = us2ticks(time); |
120 | 120 | ||
121 | t->handler = f; |
121 | t->handler = f; |