* [PATCH] MIPS: Loongson: Probe Loongson 1C & Loongson 1
@ 2017-01-04 13:04 谢致邦 (XIE Zhibang)
0 siblings, 0 replies; only message in thread
From: 谢致邦 (XIE Zhibang) @ 2017-01-04 13:04 UTC (permalink / raw)
To: linux-mips
Loongson 1 is a 32-bit MIPS CPU family with PRID 0x4220.
Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com>
---
arch/mips/kernel/cpu-probe.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 06f690eb..62946f7b 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -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;
}
--
2.11.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-04 13:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-04 13:04 [PATCH] MIPS: Loongson: Probe Loongson 1C & Loongson 1 谢致邦 (XIE Zhibang)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.