aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/time.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-07-23 09:05:38 +0100
committerMark Rutland <mark.rutland@arm.com>2017-08-09 14:10:29 +0100
commit31e43ad3b74a5d7b282023b72f25fc677c14c727 (patch)
tree8329fe0b3d9d9f51f9bcc6390f9526e70b922aaf /arch/arm64/kernel/time.c
parentarm64: unwind: reference pt_regs via embedded stack frame (diff)
downloadlinux-dev-31e43ad3b74a5d7b282023b72f25fc677c14c727.tar.xz
linux-dev-31e43ad3b74a5d7b282023b72f25fc677c14c727.zip
arm64: unwind: remove sp from struct stackframe
The unwind code sets the sp member of struct stackframe to 'frame pointer + 0x10' unconditionally, without regard for whether doing so produces a legal value. So let's simply remove it now that we have stopped using it anyway. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: James Morse <james.morse@arm.com> Cc: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/time.c')
-rw-r--r--arch/arm64/kernel/time.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/kernel/time.c b/arch/arm64/kernel/time.c
index da33c90248e9..a4391280fba9 100644
--- a/arch/arm64/kernel/time.c
+++ b/arch/arm64/kernel/time.c
@@ -50,7 +50,6 @@ unsigned long profile_pc(struct pt_regs *regs)
return regs->pc;
frame.fp = regs->regs[29];
- frame.sp = regs->sp;
frame.pc = regs->pc;
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
frame.graph = -1; /* no task info */