aboutsummaryrefslogtreecommitdiffstats
path: root/src/post.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2015-07-22 16:06:27 -0400
committerKevin O'Connor <kevin@koconnor.net>2015-07-22 16:09:34 -0400
commitbbb3fbac21c7d3839654bf1c352423b424dbaeb3 (patch)
treeddc9fdb9afa458359425ec50915281abfd02627b /src/post.c
parent4ce5d20799ed25f1cf7666e11334d72e3ddb5749 (diff)
downloadseabios-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/post.c b/src/post.c
index 8cb7b7cb..6803585c 100644
--- a/src/post.c
+++ b/src/post.c
@@ -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();
}