diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-09-17 11:58:10 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-09-18 14:25:19 -0400 |
commit | 8ff374b9c296b96484d5e63b45b22d0862ffee8f (patch) | |
tree | 0a40c8b881b985854a58793b14ca7b4de9c6f123 /arch/mips/mti-sead3 | |
parent | b42b4f3af8b1ac2f7b09781d523bf918f366d8d6 (diff) |
MIPS: Cleanup CP0 PRId and CP1 FPIR register access masks
Replace hardcoded CP0 PRId and CP1 FPIR register access masks throughout.
The change does not touch places that use shifted or partial masks.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5838/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mti-sead3')
-rw-r--r-- | arch/mips/mti-sead3/sead3-time.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/mti-sead3/sead3-time.c b/arch/mips/mti-sead3/sead3-time.c index a43ea3cc0a3b..552d26c34386 100644 --- a/arch/mips/mti-sead3/sead3-time.c +++ b/arch/mips/mti-sead3/sead3-time.c | |||
@@ -7,6 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | #include <linux/init.h> | 8 | #include <linux/init.h> |
9 | 9 | ||
10 | #include <asm/cpu.h> | ||
10 | #include <asm/setup.h> | 11 | #include <asm/setup.h> |
11 | #include <asm/time.h> | 12 | #include <asm/time.h> |
12 | #include <asm/irq.h> | 13 | #include <asm/irq.h> |
@@ -34,7 +35,7 @@ static void __iomem *status_reg = (void __iomem *)0xbf000410; | |||
34 | */ | 35 | */ |
35 | static unsigned int __init estimate_cpu_frequency(void) | 36 | static unsigned int __init estimate_cpu_frequency(void) |
36 | { | 37 | { |
37 | unsigned int prid = read_c0_prid() & 0xffff00; | 38 | unsigned int prid = read_c0_prid() & (PRID_COMP_MASK | PRID_IMP_MASK); |
38 | unsigned int tick = 0; | 39 | unsigned int tick = 0; |
39 | unsigned int freq; | 40 | unsigned int freq; |
40 | unsigned int orig; | 41 | unsigned int orig; |