Rev 167 | Rev 184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 167 | Rev 170 | ||
---|---|---|---|
Line 240... | Line 240... | ||
240 | before_thread_runs(); |
240 | before_thread_runs(); |
241 | spinlock_unlock(&THREAD->lock); |
241 | spinlock_unlock(&THREAD->lock); |
242 | cpu_priority_restore(THREAD->saved_context.pri); |
242 | cpu_priority_restore(THREAD->saved_context.pri); |
243 | return; |
243 | return; |
244 | } |
244 | } |
- | 245 | ||
- | 246 | /* |
|
- | 247 | * CPU priority of preempted thread is recorded here |
|
- | 248 | * to facilitate scheduler() invocations from |
|
- | 249 | * cpu_priority_high()'ed code (e.g. waitq_sleep_timeout()). |
|
- | 250 | */ |
|
245 | THREAD->saved_context.pri = pri; |
251 | THREAD->saved_context.pri = pri; |
246 | } |
252 | } |
247 | 253 | ||
248 | /* |
254 | /* |
249 | * We may not keep the old stack. |
255 | * We may not keep the old stack. |