From: Kevin O'Connor Date: Wed, 22 Jul 2015 20:06:27 +0000 (-0400) Subject: timer: Delay timestamp counter init until after pmtimer is probed X-Git-Tag: rel-1.9.0~86 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bbb3fbac21c7d3839654bf1c352423b424dbaeb3;p=seabios.git 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 --- diff --git a/src/post.c b/src/post.c index 8cb7b7c..6803585 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(); }