diff options
author | Rohit Vaswani <rvaswani@codeaurora.org> | 2014-06-30 16:54:45 -0700 |
---|---|---|
committer | Rohit Vaswani <rvaswani@codeaurora.org> | 2016-03-01 12:22:10 -0800 |
commit | 1267164e16857ab7f28aef12224456d5fdbfe48e (patch) | |
tree | b2b60178bd6a1567b63367e53f8b314826a9e607 | |
parent | 15dc52211d6c7d43d8572242d81989c7513dabe6 (diff) |
ARM64: smp: fix incorrect per-cpu definition of regs_before_stop
The commit f3b4a40bc637a25c01c5ec66c825b4ddfc30328a 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: Rohit Vaswani <rvaswani@codeaurora.org>
-rw-r--r-- | arch/arm64/kernel/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 9db7bf7b0c93..c9e6e8101f42 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -680,7 +680,7 @@ void arch_irq_work_raise(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() |