Skip to content

Commit

Permalink
[MIPS] Uses MIPS_CONF_AR instead of magic constants.
Browse files Browse the repository at this point in the history
Signed-off-by: Thiemo Seufer <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
Thiemo Seufer authored and ralfbaechle committed Jul 13, 2006
1 parent 3147374 commit 3a01c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/kernel/cpu-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 3a01c49

Please sign in to comment.