diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-07-22 16:06:27 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-07-22 16:09:34 -0400 |
commit | bbb3fbac21c7d3839654bf1c352423b424dbaeb3 (patch) | |
tree | ddc9fdb9afa458359425ec50915281abfd02627b /src/post.c | |
parent | 4ce5d20799ed25f1cf7666e11334d72e3ddb5749 (diff) | |
download | seabios-bbb3fbac21c7d3839654bf1c352423b424dbaeb3.tar.gz |
timer: Delay timestamp counter init until after pmtimer is probed
Delay call to timer_setup() until after the xxx_platform_setup() calls
so that the pmtimer can be detected first. Most modern machines will
have a pmtimer and calibrating the timestamp counter is frequently
unnecessary.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/post.c')
-rw-r--r-- | src/post.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -168,13 +168,15 @@ platform_hardware_setup(void) pic_setup(); thread_setup(); mathcp_setup(); - timer_setup(); - clock_setup(); // Platform specific setup qemu_platform_setup(); coreboot_platform_setup(); + // Setup timers and periodic clock interrupt + timer_setup(); + clock_setup(); + // Initialize TPM tpm_setup(); } |