Skip to content

Commit

Permalink
arm: berlin: remove non-necessary flush_cache_all()
Browse files Browse the repository at this point in the history
I believe the flush_cache_all() after scu_enable() is to "Ensure that
the data accessed by CPU0 before the SCU was initialised is visible
to the other CPUs." as commented in scu_enable(). So here
flush_cache_all() is a duplication, remove it.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
  • Loading branch information
Jisheng Zhang authored and Jisheng Zhang committed May 24, 2018
1 parent 2e55439 commit e03b480
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/arm/mach-berlin/platsmp.c
Original file line number Diff line number Diff line change
@@ -81,7 +81,6 @@ static void __init berlin_smp_prepare_cpus(unsigned int max_cpus)
goto unmap_scu;

scu_enable(scu_base);
flush_cache_all();

/*
* Write the first instruction the CPU will execute after being reset

0 comments on commit e03b480

Please sign in to comment.