Fix CPUID typo. This caused fid to memory speed calculations to be off.
Signed-off-by: Marc Jones <marcj303@gmail.com> Acked-by: Ward Vandewege <ward@gnu.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4021 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
5182f67590
commit
2f4979f347
|
@ -1655,7 +1655,7 @@ static uint8_t get_exact_divisor(int i, uint8_t divisor)
|
||||||
|
|
||||||
/* Check for FID control support */
|
/* Check for FID control support */
|
||||||
struct cpuid_result cpuid1;
|
struct cpuid_result cpuid1;
|
||||||
cpuid1 = cpuid(0x8000007);
|
cpuid1 = cpuid(0x80000007);
|
||||||
if( cpuid1.edx & 0x02 ) {
|
if( cpuid1.edx & 0x02 ) {
|
||||||
/* Use current FID */
|
/* Use current FID */
|
||||||
unsigned fid_cur;
|
unsigned fid_cur;
|
||||||
|
|
|
@ -426,7 +426,7 @@ static uint16_t get_exact_T1000(unsigned i)
|
||||||
|
|
||||||
/* Check for FID control support */
|
/* Check for FID control support */
|
||||||
struct cpuid_result cpuid1;
|
struct cpuid_result cpuid1;
|
||||||
cpuid1 = cpuid(0x8000007);
|
cpuid1 = cpuid(0x80000007);
|
||||||
if( cpuid1.edx & 0x02 ) {
|
if( cpuid1.edx & 0x02 ) {
|
||||||
/* Use current FID */
|
/* Use current FID */
|
||||||
unsigned fid_cur;
|
unsigned fid_cur;
|
||||||
|
|
Loading…
Reference in New Issue