Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42f3caef authored by John Crispin's avatar John Crispin
Browse files

MIPS: show correct cpu name for 24KEc



Make sure 24KEc is properly identified inside /proc/cpuinfo

Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
parent 6404b7cb
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -838,10 +838,13 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu)
		__cpu_name[cpu] = "MIPS 20Kc";
		__cpu_name[cpu] = "MIPS 20Kc";
		break;
		break;
	case PRID_IMP_24K:
	case PRID_IMP_24K:
	case PRID_IMP_24KE:
		c->cputype = CPU_24K;
		c->cputype = CPU_24K;
		__cpu_name[cpu] = "MIPS 24Kc";
		__cpu_name[cpu] = "MIPS 24Kc";
		break;
		break;
	case PRID_IMP_24KE:
		c->cputype = CPU_24K;
		__cpu_name[cpu] = "MIPS 24KEc";
		break;
	case PRID_IMP_25KF:
	case PRID_IMP_25KF:
		c->cputype = CPU_25KF;
		c->cputype = CPU_25KF;
		__cpu_name[cpu] = "MIPS 25Kc";
		__cpu_name[cpu] = "MIPS 25Kc";