[Timers] Miscellaneous timer system fixes

Add missing comments to timer code.

Lock system if no suitable timer source is found.

Fix initialisation order so that timers are initialised before code that
needs to use them.
This commit is contained in:
Michael Brown
2008-03-18 14:48:28 +00:00
parent 03398e3389
commit 2652abdc5f
4 changed files with 60 additions and 44 deletions

View File

@@ -263,6 +263,6 @@ struct startup_fn serial_startup_fn __startup_fn ( STARTUP_NORMAL ) = {
* early debug messages. It is safe to call serial_init() multiple
* times.
*/
struct init_fn serial_init_fn __init_fn ( INIT_EARLY ) = {
struct init_fn serial_init_fn __init_fn ( INIT_CONSOLE ) = {
.initialise = serial_init,
};