The ACPI PSS CPU Pstate table was calculating the frequency incorrectly for
[coreboot.git] / src / mainboard / amd / dbm690t / acpi_tables.c
index a61db3d4340c16b2b31cdb99ee563fb0d51505ce..987eeae8b8f1ed9a95c63633cd456b078f59158b 100644 (file)
@@ -133,7 +133,7 @@ u32 pstates_algorithm(acpi_header_t * dsdt)
        u32 *v;
        struct cpuid_result cpuid1;
 
-       typedef struct power_limit_encoding {
+       struct power_limit_encoding {
                u8 socket_type;
                u8 cmp_cap;
                u8 pwr_lmt;
@@ -258,12 +258,11 @@ u32 pstates_algorithm(acpi_header_t * dsdt)
                return 0;
        }
 
-       /*get the multipier of the fid frequency */
+       /* Get the multipier of the fid frequency */
        /*
-        * In RevG, 100MHz step is added
+        * Fid multiplier is always 100 revF and revG.\r
         */
-       cpuid1 = cpuid(0x80000007);
-       fid_multiplier = ((cpuid1.edx & 0x40) >> 6) * 100;
+       fid_multiplier = 100;
 
        /*
         * Formula1:    CPUFreq = FID * fid_multiplier + 800