Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32e98058 authored by Rohit Vaswani's avatar Rohit Vaswani
Browse files

ARM64: smp: fix incorrect per-cpu definition of regs_before_stop



The commit f3b4a40b introduced changes
to store CPU registers for all CPUs that handle IPI_CPU_STOP. The
structure to save the registers was intended to be a per-cpu variable.
However, the patch did not allocate a per-cpu structure and instead only
ended up providing a compiler per-cpu directive. Fix this bug by actually
defining a static per-cpu variable.

Change-Id: Iea7e52e91819f6f2c7f8d2c638545c0a68d2ef76
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
parent 8ae7326c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -508,7 +508,7 @@ u64 smp_irq_stat_cpu(unsigned int cpu)

static DEFINE_RAW_SPINLOCK(stop_lock);

static struct pt_regs __percpu regs_before_stop;
DEFINE_PER_CPU(struct pt_regs, regs_before_stop);

/*
 * ipi_cpu_stop - handle IPI from smp_send_stop()