smp: enable smp
This is a very large patch. Don't feel like splitting it up. Change locking discipline for rbtrees. Most changes are this. Fix stack init logic for application processors, and start them up. Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
33d6f72cfe
commit
3e5abada9b
17 changed files with 123 additions and 52 deletions
|
|
@ -55,6 +55,8 @@ static struct thread *dequeue_thread()
|
|||
if (!sched_queue.head)
|
||||
sched_queue.tail = NULL;
|
||||
t->next = NULL;
|
||||
} else {
|
||||
t = tls_get()->idle_thread;
|
||||
}
|
||||
spinlock_release(&sched_queue.lock);
|
||||
return t;
|
||||
|
|
|
|||
Loading…
Reference in a new issue