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:
committed by
Stefan Reinauer
parent
3df9dbe886
commit
242ea84b01
@@ -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. */
|
||||
|
Reference in New Issue
Block a user