diff options
author | Florian Fainelli | 2016-02-04 03:14:53 +0100 |
---|---|---|
committer | Ralf Baechle | 2016-05-09 12:00:01 +0200 |
commit | f6cc0ee98b230b085e019f0c791af68a4f99e446 (patch) | |
tree | 2bba357abcefa1607007df26d9d0bd200b47985a /arch/mips/kernel/smp-bmips.c | |
parent | MIPS: BMIPS: Remove maxcpus from BCM97435SVMB DTS (diff) | |
download | kernel-qcow2-linux-f6cc0ee98b230b085e019f0c791af68a4f99e446.tar.gz kernel-qcow2-linux-f6cc0ee98b230b085e019f0c791af68a4f99e446.tar.xz kernel-qcow2-linux-f6cc0ee98b230b085e019f0c791af68a4f99e446.zip |
MIPS: BMIPS: Fill in current_cpu_data.core
Read the core ID in bmips_smp_finish() for BMIPS5000 CPUs to get appropriate
processor parenting in set_cpu_sibling_map().
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: john@phrozen.org
Cc: cernekee@gmail.com
Cc: jon.fraser@broadcom.com
Cc: jaedon.shin@gmail.com
Cc: dragan.stancevic@gmail.com
Cc: jogo@openwrt.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12380/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/smp-bmips.c')
-rw-r--r-- | arch/mips/kernel/smp-bmips.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index 78cf8c2f1de0..6d11788b4502 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -243,6 +243,7 @@ static void bmips_init_secondary(void) break; case CPU_BMIPS5000: write_c0_brcm_action(ACTION_CLR_IPI(smp_processor_id(), 0)); + current_cpu_data.core = (read_c0_brcm_config() >> 25) & 3; break; } } |