linux-mips
[Top] [All Lists]

[PATCH] MIPS: show correct cpu name for 24KEc

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: show correct cpu name for 24KEc
From: John Crispin <blogic@openwrt.org>
Date: Sat, 19 Jan 2013 10:56:15 +0100
Cc: linux-mips@linux-mips.org, John Crispin <blogic@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
Make sure 24KEc is properly identified inside /proc/cpuinfo

Signed-off-by: John Crispin <blogic@openwrt.org>
---
 arch/mips/kernel/cpu-probe.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 8db7a47..ba16902 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -841,10 +841,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";
-- 
1.7.10.4


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: show correct cpu name for 24KEc, John Crispin <=