Skip to contentSkip to conversation

MIPS: Give Octeon+ CPUs their own __cpu_name

PATCH In review David Daney 2 participants 2 messages Feb 23, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Give Octeon+ CPUs their own __cpu_name

---

This couuld be rolled into the original linux-queue patch that extablishes CPU_CAVIUM_OCTEON_PLUS.

 arch/mips/kernel/cpu-probe.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
arch/mips/kernel/cpu-probe.c +4 -3
index ee67aac..be5bb16 100644
@@ -913,14 +913,15 @@ static inline void cpu_probe_cavium(struct cpuinfo_mips *c, unsigned int cpu)
 	case PRID_IMP_CAVIUM_CN31XX:
 	case PRID_IMP_CAVIUM_CN30XX:
 		c->cputype = CPU_CAVIUM_OCTEON;
-		goto name_and_platform;
+		__cpu_name[cpu] = "Cavium Octeon";
+		goto platform;
 	case PRID_IMP_CAVIUM_CN58XX:
 	case PRID_IMP_CAVIUM_CN56XX:
 	case PRID_IMP_CAVIUM_CN50XX:
 	case PRID_IMP_CAVIUM_CN52XX:
 		c->cputype = CPU_CAVIUM_OCTEON_PLUS;
-name_and_platform:
-		__cpu_name[cpu] = "Cavium Octeon";
+		__cpu_name[cpu] = "Cavium Octeon+";
+platform:
 		if (cpu == 0)
 			__elf_platform = "octeon";
 		break;
Signature · 1 line
1.6.6.1
#1 lore raw
Quoted 2 lines · David Daney

This couuld be rolled into the original linux-queue patch that extablishes CPU_CAVIUM_OCTEON_PLUS.

Done.

Ralf