diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-05-01 12:20:33 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-05-01 12:20:33 -0400 |
commit | e438b0c6202ab7e2c55f4e9bf4db0bc176e5c544 (patch) | |
tree | a498cf1b7a289d7de220887a5917b5f528bccaa7 /src/stacks.c | |
parent | f59b5ac27eec5a8bf3e2804bf57385b8c2b0fd06 (diff) | |
download | seabios-e438b0c6202ab7e2c55f4e9bf4db0bc176e5c544.tar.gz |
Further parallelize init when using CONFIG_THREAD_OPTIONROMS.
When optionrom threading is enabled, allow hardware init to run in
parallel with boot menu key press delay and with the smp detection.
Also, run qemu_cfg_port_probe() before ram_probe().
Diffstat (limited to 'src/stacks.c')
-rw-r--r-- | src/stacks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stacks.c b/src/stacks.c index 92d91a06..859de3f5 100644 --- a/src/stacks.c +++ b/src/stacks.c @@ -193,6 +193,8 @@ __end_thread(struct thread_info *old) *old->pprev = old->next; free(old); dprintf(DEBUG_thread, "\\%08x/ End thread\n", (u32)old); + if (MainThread.next == &MainThread) + dprintf(1, "All threads complete.\n"); } // Create a new thread and start executing 'func' in it. @@ -299,7 +301,7 @@ finish_preempt(void) } CanPreempt = 0; releaseRTC(); - dprintf(1, "Done preempt - %d checks\n", PreemptCount); + dprintf(9, "Done preempt - %d checks\n", PreemptCount); yield(); } |