summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/cpu-probe.c
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-01-29 01:52:13 +0100
committerRalf Baechle <ralf@linux-mips.org>2010-02-27 12:53:20 +0100
commit368bf8ef304f426be0a8a0be5b0e437747598c10 (patch)
tree5c9582e1a4c109464d92aa7f55e3970e2af3749e /arch/mips/kernel/cpu-probe.c
parentMIPS: Allow the auxv's elf_platform entry to be set. (diff)
downloadlinux-368bf8ef304f426be0a8a0be5b0e437747598c10.tar.xz
linux-368bf8ef304f426be0a8a0be5b0e437747598c10.zip
MIPS: Set __elf_platform for Octeon.
Signed-off-by: David Daney <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/892/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
-rw-r--r--arch/mips/kernel/cpu-probe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 494e8ab48d63..9ea5ca89e85f 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -917,6 +917,8 @@ static inline void cpu_probe_cavium(struct cpuinfo_mips *c, unsigned int cpu)
case PRID_IMP_CAVIUM_CN52XX:
c->cputype = CPU_CAVIUM_OCTEON;
__cpu_name[cpu] = "Cavium Octeon";
+ if (cpu == 0)
+ __elf_platform = "octeon";
break;
default:
printk(KERN_INFO "Unknown Octeon chip!\n");