Commit 0c2f4551 authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: Decode core number for R2 CPUs.

The struct cpuinfo_mips.core field should be populated with the
physical core number.  For R2 CPUs, this is carried in the low 10 bits
of Ebase.
Signed-off-by: default avatarDavid Daney <>

Signed-off-by: default avatarRalf Baechle <>
parent fa90c872
......@@ -761,6 +761,9 @@ static void __cpuinit decode_configs(struct cpuinfo_mips *c)
ok = decode_config4(c);
if (cpu_has_mips_r2)
c->core = read_c0_ebase() & 0x3ff;
static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment