diff options
Diffstat (limited to 'arch/mips/mti-malta/malta-time.c')
| -rw-r--r-- | arch/mips/mti-malta/malta-time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/mti-malta/malta-time.c b/arch/mips/mti-malta/malta-time.c index 53aad4a35375..a18af5fce67e 100644 --- a/arch/mips/mti-malta/malta-time.c +++ b/arch/mips/mti-malta/malta-time.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include <linux/timex.h> | 27 | #include <linux/timex.h> |
| 28 | #include <linux/mc146818rtc.h> | 28 | #include <linux/mc146818rtc.h> |
| 29 | 29 | ||
| 30 | #include <asm/cpu.h> | ||
| 30 | #include <asm/mipsregs.h> | 31 | #include <asm/mipsregs.h> |
| 31 | #include <asm/mipsmtregs.h> | 32 | #include <asm/mipsmtregs.h> |
| 32 | #include <asm/hardirq.h> | 33 | #include <asm/hardirq.h> |
| @@ -76,7 +77,7 @@ static void __init estimate_frequencies(void) | |||
| 76 | #endif | 77 | #endif |
| 77 | 78 | ||
| 78 | #if defined (CONFIG_KVM_GUEST) && defined (CONFIG_KVM_HOST_FREQ) | 79 | #if defined (CONFIG_KVM_GUEST) && defined (CONFIG_KVM_HOST_FREQ) |
| 79 | unsigned int prid = read_c0_prid() & 0xffff00; | 80 | unsigned int prid = read_c0_prid() & (PRID_COMP_MASK | PRID_IMP_MASK); |
| 80 | 81 | ||
| 81 | /* | 82 | /* |
| 82 | * XXXKYMA: hardwire the CPU frequency to Host Freq/4 | 83 | * XXXKYMA: hardwire the CPU frequency to Host Freq/4 |
| @@ -169,7 +170,7 @@ unsigned int get_c0_compare_int(void) | |||
| 169 | 170 | ||
| 170 | void __init plat_time_init(void) | 171 | void __init plat_time_init(void) |
| 171 | { | 172 | { |
| 172 | unsigned int prid = read_c0_prid() & 0xffff00; | 173 | unsigned int prid = read_c0_prid() & (PRID_COMP_MASK | PRID_IMP_MASK); |
| 173 | unsigned int freq; | 174 | unsigned int freq; |
| 174 | 175 | ||
| 175 | estimate_frequencies(); | 176 | estimate_frequencies(); |
