Commit e14f633b authored by Florian Fainelli's avatar Florian Fainelli Committed by Thomas Bogendoerfer

MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores

The initialization done by bmips_cpu_setup() typically affects both
threads of a given core, on 7435 which supports 2 cores and 2 threads,
logical CPU number 2 and 3 would not run this initialization.

Fixes: 738a3f79 ("MIPS: BMIPS: Add early CPU initialization code")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent dbfc95f9
...@@ -239,6 +239,8 @@ static int bmips_boot_secondary(int cpu, struct task_struct *idle) ...@@ -239,6 +239,8 @@ static int bmips_boot_secondary(int cpu, struct task_struct *idle)
*/ */
static void bmips_init_secondary(void) static void bmips_init_secondary(void)
{ {
bmips_cpu_setup();
switch (current_cpu_type()) { switch (current_cpu_type()) {
case CPU_BMIPS4350: case CPU_BMIPS4350:
case CPU_BMIPS4380: case CPU_BMIPS4380:
......
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