Rev 2030 | Rev 2039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2030 | Rev 2032 | ||
---|---|---|---|
Line 109... | Line 109... | ||
109 | */ |
109 | */ |
110 | static void cushion(void) |
110 | static void cushion(void) |
111 | { |
111 | { |
112 | void (*f)(void *) = THREAD->thread_code; |
112 | void (*f)(void *) = THREAD->thread_code; |
113 | void *arg = THREAD->thread_arg; |
113 | void *arg = THREAD->thread_arg; |
- | 114 | THREAD->last_cycle = get_cycle(); |
|
114 | 115 | ||
115 | /* this is where each thread wakes up after its creation */ |
116 | /* this is where each thread wakes up after its creation */ |
116 | spinlock_unlock(&THREAD->lock); |
117 | spinlock_unlock(&THREAD->lock); |
117 | interrupts_enable(); |
118 | interrupts_enable(); |
118 | 119 |