aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/cpu-probe.c
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-01-28 19:52:12 -0500
committerRalf Baechle <ralf@linux-mips.org>2010-02-27 06:53:20 -0500
commit874fd3b5acc20f2a464409045aef3b2288069787 (patch)
tree667316d08ee5b5b4be99e75dca7bcf9ff315503a /arch/mips/kernel/cpu-probe.c
parent3b839070f11295735ce8d9ef580c5eb23417aabf (diff)
MIPS: Allow the auxv's elf_platform entry to be set.
The userspace runtime linker uses the elf_platform to find the libraries optimized for the current CPU archecture variant. First we need to allow it to be set to something other than NULL. Follow-on patches will set some values for specific CPUs. GLIBC already does the right thing. The kernel just needs to supply good data. Signed-off-by: David Daney <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/891/ 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 1773544e3dbb..494e8ab48d63 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -926,6 +926,7 @@ static inline void cpu_probe_cavium(struct cpuinfo_mips *c, unsigned int cpu)
926} 926}
927 927
928const char *__cpu_name[NR_CPUS]; 928const char *__cpu_name[NR_CPUS];
929const char *__elf_platform;
929 930
930__cpuinit void cpu_probe(void) 931__cpuinit void cpu_probe(void)
931{ 932{