]> xenbits.xensource.com Git - seabios.git/commitdiff
Move find_pmtimer() to ACPI table setup where it logically belongs
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 10 Feb 2013 01:15:01 +0000 (01:15 +0000)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 13 Feb 2013 02:14:49 +0000 (21:14 -0500)
We don't have the ordering dependency with timer_setup() any more.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
src/csm.c

index 057e5294506ee0ae2070e98d09c66d3b61587f96..40fbf5d8fc925832fcba78dab6fcfaeb52aece57 100644 (file)
--- a/src/csm.c
+++ b/src/csm.c
@@ -134,6 +134,8 @@ handle_csm_0002(struct bregs *regs)
     if (csm_rsdp.signature == RSDP_SIGNATURE) {
         RsdpAddr = &csm_rsdp;
         dprintf(3, "CSM ACPI RSDP at %p\n", RsdpAddr);
+
+        find_pmtimer();
     }
 
     // SMBIOS table needs to be copied into the f-seg
@@ -151,8 +153,6 @@ handle_csm_0002(struct bregs *regs)
     bda->hdcount = 0;
 
     timer_setup();
-    // This has to set cpu_khz *after* calibrate_tsc() does it
-    find_pmtimer();
     device_hardware_setup();
     wait_threads();
     interactive_bootmenu();