From: Jes Sorensen <[email protected]>
Hi,
Discussed this with Juan and he spotted this place in
arch/x86/kernel/cpu/cpufreq/speedstep-lib.c which relies on the 'Core
Clock Frequency to System Bus Frequency Ratio', so leaving it set to 0
is not going to work. Reading the spec it also says that bits 31:24
are reserved on models 0-1, so it should be safe to set it for this
case.
Here is v2, which should hopefully do the right thing.
Cheers,
Jes
static unsigned int pentium4_get_frequency(void)
{
...
rdmsr(0x2c, msr_lo, msr_hi);
...
/* Multiplier. */
mult = msr_lo >> 24;
dprintk("P4 - FSB %u kHz; Multiplier %u; Speed %u kHz\n",
fsb, mult, (fsb * mult));
ret = (fsb * mult);
return ret;
Jes Sorensen (2):
Define MSR_EBC_FREQUENCY_ID
Emulate MSR_EBC_FREQUENCY_ID
arch/x86/include/asm/msr-index.h | 1 +
arch/x86/kvm/x86.c | 14 ++++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html