projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
904c3b4
)
MIPS: BMIPS: Fill in current_cpu_data.core
author
Florian Fainelli
<
[email protected]
>
Thu, 4 Feb 2016 02:14:53 +0000
(18:14 -0800)
committer
Ralf Baechle
<
[email protected]
>
Mon, 9 May 2016 10:00:01 +0000
(12:00 +0200)
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 <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/12380/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/kernel/smp-bmips.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/smp-bmips.c
b/arch/mips/kernel/smp-bmips.c
index 78cf8c2f1de0e8790923d25ab6e42a85e53a6fe9..6d11788b4502d3f050448b8515a172eb508eba3d 100644
(file)
--- 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;
}
}