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

Commit f5ced2e9 authored by Syed Rameez Mustafa's avatar Syed Rameez Mustafa
Browse files

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



The commit efd00289 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: Ifd192223c135025897e10312f61b108757575068
Signed-off-by: default avatarSyed Rameez Mustafa <rameezmustafa@codeaurora.org>
parent 3a5255f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -568,7 +568,7 @@ static void percpu_timer_stop(void)

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()
 */