Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245313
b: refs/heads/master
c: c094c99
h: refs/heads/master
i:
  245311: dd0ad0e
v: v3
  • Loading branch information
Robert Millan authored and Ralf Baechle committed May 19, 2011
1 parent 61662b0 commit 0428c10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6edde0247644db475f68f25dcb1bf72260600081
refs/heads/master: c094c99e659efedcbb05a0f75b8f77145d8ec539
12 changes: 8 additions & 4 deletions trunk/arch/mips/kernel/cpu-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ static inline int cpu_has_confreg(void)
#endif
}

static inline void set_elf_platform(int cpu, const char *plat)
{
if (cpu == 0)
__elf_platform = plat;
}

/*
* Get the FPU Implementation/Revision.
*/
Expand Down Expand Up @@ -956,14 +962,12 @@ static inline void cpu_probe_cavium(struct cpuinfo_mips *c, unsigned int cpu)
c->cputype = CPU_CAVIUM_OCTEON_PLUS;
__cpu_name[cpu] = "Cavium Octeon+";
platform:
if (cpu == 0)
__elf_platform = "octeon";
set_elf_platform(cpu, "octeon");
break;
case PRID_IMP_CAVIUM_CN63XX:
c->cputype = CPU_CAVIUM_OCTEON2;
__cpu_name[cpu] = "Cavium Octeon II";
if (cpu == 0)
__elf_platform = "octeon2";
set_elf_platform(cpu, "octeon2");
break;
default:
printk(KERN_INFO "Unknown Octeon chip!\n");
Expand Down

0 comments on commit 0428c10

Please sign in to comment.