|
@@ -34,6 +34,7 @@
|
|
|
|
|
|
/* Hardware capabilities */
|
|
/* Hardware capabilities */
|
|
unsigned int elf_hwcap __read_mostly;
|
|
unsigned int elf_hwcap __read_mostly;
|
|
|
|
+EXPORT_SYMBOL_GPL(elf_hwcap);
|
|
|
|
|
|
/*
|
|
/*
|
|
* Get the FPU Implementation/Revision.
|
|
* Get the FPU Implementation/Revision.
|
|
@@ -1946,6 +1947,12 @@ void cpu_probe(void)
|
|
struct cpuinfo_mips *c = ¤t_cpu_data;
|
|
struct cpuinfo_mips *c = ¤t_cpu_data;
|
|
unsigned int cpu = smp_processor_id();
|
|
unsigned int cpu = smp_processor_id();
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Set a default elf platform, cpu probe may later
|
|
|
|
+ * overwrite it with a more precise value
|
|
|
|
+ */
|
|
|
|
+ set_elf_platform(cpu, "mips");
|
|
|
|
+
|
|
c->processor_id = PRID_IMP_UNKNOWN;
|
|
c->processor_id = PRID_IMP_UNKNOWN;
|
|
c->fpu_id = FPIR_IMP_NONE;
|
|
c->fpu_id = FPIR_IMP_NONE;
|
|
c->cputype = CPU_UNKNOWN;
|
|
c->cputype = CPU_UNKNOWN;
|