aboutsummaryrefslogtreecommitdiff
path: root/src/stacks.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-05-01 12:20:33 -0400
committerKevin O'Connor <kevin@koconnor.net>2010-05-01 12:20:33 -0400
commite438b0c6202ab7e2c55f4e9bf4db0bc176e5c544 (patch)
treea498cf1b7a289d7de220887a5917b5f528bccaa7 /src/stacks.c
parentf59b5ac27eec5a8bf3e2804bf57385b8c2b0fd06 (diff)
downloadseabios-hppa-e438b0c6202ab7e2c55f4e9bf4db0bc176e5c544.zip
seabios-hppa-e438b0c6202ab7e2c55f4e9bf4db0bc176e5c544.tar.gz
seabios-hppa-e438b0c6202ab7e2c55f4e9bf4db0bc176e5c544.tar.bz2
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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stacks.c b/src/stacks.c
index 92d91a0..859de3f 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();
}