linux-mips
[Top] [All Lists]

[PATCH 2/2] MIPS: Set __elf_platform for Octeon.

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH 2/2] MIPS: Set __elf_platform for Octeon.
From: David Daney <ddaney@caviumnetworks.com>
Date: Thu, 28 Jan 2010 16:52:13 -0800
Cc: David Daney <ddaney@caviumnetworks.com>
In-reply-to: <1264726333-26599-1-git-send-email-ddaney@caviumnetworks.com>
References: <1264726333-26599-1-git-send-email-ddaney@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 arch/mips/kernel/cpu-probe.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 91ba1c8..906a2d1 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -908,6 +908,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");
-- 
1.6.0.6


<Prev in Thread] Current Thread [Next in Thread>