mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
arm64: smp: minidump save cpu context when ipi stop
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com> Change-Id: I0d98a017311aa85a509649de221873935bb16232
This commit is contained in:
@@ -56,6 +56,10 @@
|
||||
#undef CREATE_TRACE_POINTS
|
||||
#include <trace/hooks/debug.h>
|
||||
|
||||
#if IS_ENABLED(CONFIG_ROCKCHIP_MINIDUMP)
|
||||
#include <soc/rockchip/rk_minidump.h>
|
||||
#endif
|
||||
|
||||
DEFINE_PER_CPU_READ_MOSTLY(int, cpu_number);
|
||||
EXPORT_PER_CPU_SYMBOL(cpu_number);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(ipi_raise);
|
||||
@@ -916,6 +920,9 @@ static void do_handle_IPI(int ipinr)
|
||||
|
||||
case IPI_CPU_STOP:
|
||||
trace_android_vh_ipi_stop_rcuidle(get_irq_regs());
|
||||
#if IS_ENABLED(CONFIG_ROCKCHIP_MINIDUMP)
|
||||
rk_minidump_update_cpu_regs(get_irq_regs());
|
||||
#endif
|
||||
local_cpu_stop();
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user