From: Hosung Kim Date: Tue, 11 Apr 2017 10:12:30 +0000 (+0900) Subject: [COMMON] arm64: smp: recall to print other cpu information X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8da2da0e69de43700be35a0bf8f85dd0f6a2c804;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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();