Skip to content

Commit

Permalink
MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores
Browse files Browse the repository at this point in the history
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: 738a3f7 ("MIPS: BMIPS: Add early CPU initialization code")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
ffainelli authored and tsbogend committed Aug 21, 2020
1 parent dbfc95f commit e14f633
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/kernel/smp-bmips.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ static int bmips_boot_secondary(int cpu, struct task_struct *idle)
*/
static void bmips_init_secondary(void)
{
bmips_cpu_setup();

switch (current_cpu_type()) {
case CPU_BMIPS4350:
case CPU_BMIPS4380:
Expand Down

0 comments on commit e14f633

Please sign in to comment.