]> xenbits.xensource.com Git - seabios.git/commitdiff
timer: Delay timestamp counter init until after pmtimer is probed
authorKevin O'Connor <kevin@koconnor.net>
Wed, 22 Jul 2015 20:06:27 +0000 (16:06 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 22 Jul 2015 20:09:34 +0000 (16:09 -0400)
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>
src/post.c

index 8cb7b7cbbaea0a037f0f1021983c2cc3ea6aac2c..6803585c26bd35a2f523f4534a2d3dc6cbd49341 100644 (file)
@@ -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();
 }