MIPS: Loongson: Probe Loongson 1C & Loongson 1
PATCH 1/1 MIPS: Loongson: Probe Loongson 1C & Loongson 1
Loongson 1 is a 32-bit MIPS CPU family with PRID 0x4220.
Signed-off-by 谢致邦 (XIE Zhibang) <[email protected]>
--- arch/mips/kernel/cpu-probe.c | 6 ++++++ 1 file changed, 6 insertions(+)
arch/mips/kernel/cpu-probe.c +6 -0
@@ -1503,7 +1503,13 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)switch (c->processor_id &PRID_REV_MASK ) {case PRID_REV_LOONGSON1 : +#if defined(CONFIG_CPU_LOONGSON1B ) __cpu_name[cpu] ="Loongson 1B" ; +#elif defined(CONFIG_CPU_LOONGSON1C ) + __cpu_name[cpu] ="Loongson 1C" ; +#else + __cpu_name[cpu] ="Loongson 1" ; +#endif break ; }
Signature · 1 line
2.11.0