summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin2013-01-11 22:44:10 +0100
committerJohn Crispin2013-02-17 00:15:16 +0100
commit42f3caef039571df8c30a78a51c09cbdbaa7863b (patch)
treeb971e3e2233ded8cdfe7a07f58673c97c8f59c05
parentMIPS: BCM47XX: use fallback sprom var for board_{rev,type} (diff)
downloadkernel-qcow2-linux-42f3caef039571df8c30a78a51c09cbdbaa7863b.tar.gz
kernel-qcow2-linux-42f3caef039571df8c30a78a51c09cbdbaa7863b.tar.xz
kernel-qcow2-linux-42f3caef039571df8c30a78a51c09cbdbaa7863b.zip
MIPS: show correct cpu name for 24KEc
Make sure 24KEc is properly identified inside /proc/cpuinfo Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r--arch/mips/kernel/cpu-probe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index cce3782c96c9..9f31334ed1de 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -838,10 +838,13 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu)
__cpu_name[cpu] = "MIPS 20Kc";
break;
case PRID_IMP_24K:
- case PRID_IMP_24KE:
c->cputype = CPU_24K;
__cpu_name[cpu] = "MIPS 24Kc";
break;
+ case PRID_IMP_24KE:
+ c->cputype = CPU_24K;
+ __cpu_name[cpu] = "MIPS 24KEc";
+ break;
case PRID_IMP_25KF:
c->cputype = CPU_25KF;
__cpu_name[cpu] = "MIPS 25Kc";