From 8da2da0e69de43700be35a0bf8f85dd0f6a2c804 Mon Sep 17 00:00:00 2001 From: Hosung Kim Date: Tue, 11 Apr 2017 19:12:30 +0900 Subject: [PATCH] [COMMON] arm64: smp: recall to print other cpu information This commit reverts following commits it is already merged. arm64: Reduce verbosity on SMP CPU stop by Jab Glauber. In mobile, this information is very important to debug. Change-Id: I1ca149608d70903675b7ff0a98c206e339b45e1e Signed-off-by: Hosung Kim --- arch/arm64/kernel/smp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 6a8dc4d33f2e..f1cf3634ade7 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -832,11 +832,21 @@ void arch_irq_work_raise(void) } #endif +static DEFINE_RAW_SPINLOCK(stop_lock); + /* * ipi_cpu_stop - handle IPI from smp_send_stop() */ static void ipi_cpu_stop(unsigned int cpu, struct pt_regs *regs) { + if (system_state == SYSTEM_BOOTING || + system_state == SYSTEM_RUNNING) { + raw_spin_lock(&stop_lock); + pr_crit("CPU%u: stopping\n", cpu); + dump_stack(); + raw_spin_unlock(&stop_lock); + } + set_cpu_online(cpu, false); local_irq_disable(); -- 2.20.1