summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-07-03 13:30:01 +0100
committerRalf Baechle <ralf@linux-mips.org>2006-07-13 21:26:01 +0100
commit3a01c49ad81d301fe7265dd63bfb15ee3c3754ef (patch)
treee11de29d839921ddb317da9f5200928adebbf9b6
parent31473747bd441719f9f6a07385684dce547533e0 (diff)
downloadop-kernel-dev-3a01c49ad81d301fe7265dd63bfb15ee3c3754ef.zip
op-kernel-dev-3a01c49ad81d301fe7265dd63bfb15ee3c3754ef.tar.gz
[MIPS] Uses MIPS_CONF_AR instead of magic constants.
Signed-off-by: Thiemo Seufer <ths@networkno.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/cpu-probe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index ba08f05..17eea1f 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -459,7 +459,7 @@ static inline unsigned int decode_config0(struct cpuinfo_mips *c)
isa = (config0 & MIPS_CONF_AT) >> 13;
switch (isa) {
case 0:
- switch ((config0 >> 10) & 7) {
+ switch ((config0 & MIPS_CONF_AR) >> 10) {
case 0:
c->isa_level = MIPS_CPU_ISA_M32R1;
break;
@@ -471,7 +471,7 @@ static inline unsigned int decode_config0(struct cpuinfo_mips *c)
}
break;
case 2:
- switch ((config0 >> 10) & 7) {
+ switch ((config0 & MIPS_CONF_AR) >> 10) {
case 0:
c->isa_level = MIPS_CPU_ISA_M64R1;
break;
OpenPOWER on IntegriCloud