/SPARTAN/trunk/src/main/kinit.c |
---|
77,7 → 77,6 |
spinlock_unlock(&t->lock); |
thread_ready(t); |
waitq_sleep(&kmp_completion_wq); |
cpu_priority_high(); |
} |
else panic("thread_create/kmp"); |
} |
/SPARTAN/trunk/src/proc/scheduler.c |
---|
242,6 → 242,12 |
cpu_priority_restore(THREAD->saved_context.pri); |
return; |
} |
/* |
* CPU priority of preempted thread is recorded here |
* to facilitate scheduler() invocations from |
* cpu_priority_high()'ed code (e.g. waitq_sleep_timeout()). |
*/ |
THREAD->saved_context.pri = pri; |
} |