mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
ARM: Flush the caches for non panicking CPUs in case of a kernel panic
In case of a kernel panic, only the panicking CPU does an entire cache flush. This means that certain dirty cache lines in the L1 caches of the other CPUs may never get flushed. This gives us improper RAM dumps. Add cache flushing for all the online CPUs. The outer domain is not flushed since it is already being done by the panicking CPU. Change-Id: Ibf844ecf6b4dbc3c623789f72a26936aeb4a7306 Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
This commit is contained in:
parent
51e9fb42c9
commit
ec6b7a0cf6
1 changed files with 2 additions and 0 deletions
|
@ -584,6 +584,8 @@ static void ipi_cpu_stop(unsigned int cpu)
|
|||
local_fiq_disable();
|
||||
local_irq_disable();
|
||||
|
||||
flush_cache_all();
|
||||
|
||||
while (1)
|
||||
cpu_relax();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue