diff options
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 34df5afa2d6f..bd712c91f48b 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
@@ -735,16 +735,22 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu) | |||
735 | c->tlbsize = 64; | 735 | c->tlbsize = 64; |
736 | break; | 736 | break; |
737 | case PRID_IMP_LOONGSON_64: /* Loongson-2/3 */ | 737 | case PRID_IMP_LOONGSON_64: /* Loongson-2/3 */ |
738 | c->cputype = CPU_LOONGSON2; | ||
739 | __cpu_name[cpu] = "ICT Loongson-2"; | ||
740 | |||
741 | switch (c->processor_id & PRID_REV_MASK) { | 738 | switch (c->processor_id & PRID_REV_MASK) { |
742 | case PRID_REV_LOONGSON2E: | 739 | case PRID_REV_LOONGSON2E: |
740 | c->cputype = CPU_LOONGSON2; | ||
741 | __cpu_name[cpu] = "ICT Loongson-2"; | ||
743 | set_elf_platform(cpu, "loongson2e"); | 742 | set_elf_platform(cpu, "loongson2e"); |
744 | break; | 743 | break; |
745 | case PRID_REV_LOONGSON2F: | 744 | case PRID_REV_LOONGSON2F: |
745 | c->cputype = CPU_LOONGSON2; | ||
746 | __cpu_name[cpu] = "ICT Loongson-2"; | ||
746 | set_elf_platform(cpu, "loongson2f"); | 747 | set_elf_platform(cpu, "loongson2f"); |
747 | break; | 748 | break; |
749 | case PRID_REV_LOONGSON3A: | ||
750 | c->cputype = CPU_LOONGSON3; | ||
751 | __cpu_name[cpu] = "ICT Loongson-3"; | ||
752 | set_elf_platform(cpu, "loongson3a"); | ||
753 | break; | ||
748 | } | 754 | } |
749 | 755 | ||
750 | set_isa(c, MIPS_CPU_ISA_III); | 756 | set_isa(c, MIPS_CPU_ISA_III); |