Skip to contentSkip to conversation

make cpu_probe recognize Loongson2

PATCH In review [email protected] 1 participant 1 message Apr 4, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 10/16 make cpu_probe recognize Loongson2

---
 arch/mips/kernel/cpu-probe.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
arch/mips/kernel/cpu-probe.c +8 -0
index ab755ea..125c72c 100644
@@ -464,6 +464,14 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c)
 		             MIPS_CPU_LLSC;
 		c->tlbsize = 64;
 		break;
+	case PRID_IMP_LOONGSON2:
+		c->cputype = CPU_LOONGSON2;
+		c->isa_level = MIPS_CPU_ISA_III;
+		c->options = R4K_OPTS | 
+			     MIPS_CPU_FPU | MIPS_CPU_LLSC |
+			     MIPS_CPU_32FPR;
+		c->tlbsize = 64;
+		break;
 	}
 }
 
Signature · 1 line
1.4.4.4