Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 212 → Rev 213

/SPARTAN/trunk/src/proc/scheduler.c
135,7 → 135,7
spinlock_unlock(&r->lock);
continue;
}
 
/* avoid deadlock with relink_rq() */
if (!spinlock_trylock(&CPU->lock)) {
/*
412,6 → 412,9
printf("cpu%d: tid %d (pri=%d,ticks=%d,nrdy=%d)\n", CPU->id, THREAD->tid, THREAD->pri, THREAD->ticks, CPU->nrdy);
#endif
 
/*
* Copy the knowledge of CPU, TASK, THREAD and preemption counter to thread's stack.
*/
the_copy(THE, (the_t *) THREAD->kstack);
context_restore(&THREAD->saved_context);