diff options
Diffstat (limited to 'arch/mips/mti-malta')
-rw-r--r-- | arch/mips/mti-malta/malta-time.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/mips/mti-malta/malta-time.c b/arch/mips/mti-malta/malta-time.c index 319009912142..3778a359f3ad 100644 --- a/arch/mips/mti-malta/malta-time.c +++ b/arch/mips/mti-malta/malta-time.c | |||
@@ -74,18 +74,8 @@ static void __init estimate_frequencies(void) | |||
74 | unsigned int giccount = 0, gicstart = 0; | 74 | unsigned int giccount = 0, gicstart = 0; |
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | #if defined (CONFIG_KVM_GUEST) && defined (CONFIG_KVM_HOST_FREQ) | 77 | #if defined(CONFIG_KVM_GUEST) && CONFIG_KVM_GUEST_TIMER_FREQ |
78 | unsigned int prid = read_c0_prid() & (PRID_COMP_MASK | PRID_IMP_MASK); | 78 | mips_hpt_frequency = CONFIG_KVM_GUEST_TIMER_FREQ * 1000000; |
79 | |||
80 | /* | ||
81 | * XXXKYMA: hardwire the CPU frequency to Host Freq/4 | ||
82 | */ | ||
83 | count = (CONFIG_KVM_HOST_FREQ * 1000000) >> 3; | ||
84 | if ((prid != (PRID_COMP_MIPS | PRID_IMP_20KC)) && | ||
85 | (prid != (PRID_COMP_MIPS | PRID_IMP_25KF))) | ||
86 | count *= 2; | ||
87 | |||
88 | mips_hpt_frequency = count; | ||
89 | return; | 79 | return; |
90 | #endif | 80 | #endif |
91 | 81 | ||