Fix a wrong comment in thread.c and mention an alternative approach to inits. Fix a couple headers' Id fields while at it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19386 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
72f150139e
commit
441fca176a
3 changed files with 6 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
* $Id
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2008 by Akio Idehara, Andrew Mahone
|
||||
*
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
* $Id
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2008 by Akio Idehara
|
||||
*
|
||||
|
|
|
@ -3123,10 +3123,12 @@ void init_threads(void)
|
|||
thread->stack = stackbegin;
|
||||
thread->stack_size = (uintptr_t)stackend - (uintptr_t)stackbegin;
|
||||
#if NUM_CORES > 1 /* This code path will not be run on single core targets */
|
||||
/* Initialize all locking for the slots */
|
||||
/* Wait for other processors to finish their inits since create_thread
|
||||
* isn't safe to call until the kernel inits are done. The first
|
||||
* threads created in the system must of course be created by CPU. */
|
||||
* threads created in the system must of course be created by CPU.
|
||||
* Another possible approach is to initialize all cores and slots
|
||||
* for each core by CPU, let the remainder proceed in parallel and
|
||||
* signal CPU when all are finished. */
|
||||
core_thread_init(CPU);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue