diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index ba08f055feb2..17eea1f96d9f 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) | |||
459 | isa = (config0 & MIPS_CONF_AT) >> 13; | 459 | isa = (config0 & MIPS_CONF_AT) >> 13; |
460 | switch (isa) { | 460 | switch (isa) { |
461 | case 0: | 461 | case 0: |
462 | switch ((config0 >> 10) & 7) { | 462 | switch ((config0 & MIPS_CONF_AR) >> 10) { |
463 | case 0: | 463 | case 0: |
464 | c->isa_level = MIPS_CPU_ISA_M32R1; | 464 | c->isa_level = MIPS_CPU_ISA_M32R1; |
465 | break; | 465 | break; |
@@ -471,7 +471,7 @@ static inline unsigned int decode_config0(struct cpuinfo_mips *c) | |||
471 | } | 471 | } |
472 | break; | 472 | break; |
473 | case 2: | 473 | case 2: |
474 | switch ((config0 >> 10) & 7) { | 474 | switch ((config0 & MIPS_CONF_AR) >> 10) { |
475 | case 0: | 475 | case 0: |
476 | c->isa_level = MIPS_CPU_ISA_M64R1; | 476 | c->isa_level = MIPS_CPU_ISA_M64R1; |
477 | break; | 477 | break; |