diff options
| author | David Daney <[email protected]> | 2014-05-28 23:52:10 +0200 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2014-05-30 21:01:11 +0200 |
| commit | 45b585c8dcdc469bb40b58cc2801acd7a2332525 (patch) | |
| tree | 7aa6acb2c1085b8074cc30cee2c71d0c5335f94b /arch/mips/kernel | |
| parent | 18a8cd63c0d800bbc8b91f03054fcb13d308f6ec (diff) | |
MIPS: Add function get_ebase_cpunum
This returns the CPUNum from the low order Ebase bits.
Signed-off-by: David Daney <[email protected]>
Signed-off-by: Andreas Herrmann <[email protected]>
Cc: [email protected]
Cc: James Hogan <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7012/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'arch/mips/kernel')
| -rw-r--r-- | arch/mips/kernel/cpu-probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index b1b580d69db0..d74f957c561e 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c @@ -423,7 +423,7 @@ static void decode_configs(struct cpuinfo_mips *c) #ifndef CONFIG_MIPS_CPS if (cpu_has_mips_r2) { - c->core = read_c0_ebase() & 0x3ff; + c->core = get_ebase_cpunum(); if (cpu_has_mipsmt) c->core >>= fls(core_nvpes()) - 1; } |