intel: Replace msr(0x198) with msr(IA32_PERF_STATUS)

Change-Id: I22241427d1405de2e2eb2b3cfb029f3ce2c8dace
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/22585
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Elyes HAOUAS
2017-11-23 21:23:44 +01:00
committed by Stefan Reinauer
parent 3df9dbe886
commit 242ea84b01
7 changed files with 9 additions and 9 deletions

View File

@@ -56,7 +56,7 @@ void udelay(u32 us)
break;
}
msr = rdmsr(0x198);
msr = rdmsr(IA32_PERF_STATUS);
divisor = (msr.hi >> 8) & 0x1f;
d = (fsb * divisor) / 4; /* CPU clock is always a quarter. */