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 <hosung0.kim@samsung.com>
}
#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();