aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Borisov <Nikolay.Borisov@arm.com>2014-06-03 14:51:32 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-07-18 07:29:20 -0400
commite8a5dbc59e5ef7b120635fe8a57643f3bbbd0919 (patch)
tree52300302bcc7d60f0de775dc89445f453d29a3dd
parent49432d4acf96a5dcc02d14978dcc75f522492757 (diff)
ARM: 8075/1: oprofile: Use of arm_get_current_stackframe
Use the newly introduced API so that FP is correctly referenced from either R7/R11 based on whether we are running in THUMB2 mode or not. Signed-off-by: Nikolay Borisov <Nikolay.Borisov@arm.com> Acked-by: Will Deacon <will.deacon@arm.com> Acked-by: Robert Richter <rric@kernel.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/oprofile/common.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/oprofile/common.c b/arch/arm/oprofile/common.c
index 99c63d4b6af8..e6a3c4c92163 100644
--- a/arch/arm/oprofile/common.c
+++ b/arch/arm/oprofile/common.c
@@ -107,10 +107,7 @@ static void arm_backtrace(struct pt_regs * const regs, unsigned int depth)
107 107
108 if (!user_mode(regs)) { 108 if (!user_mode(regs)) {
109 struct stackframe frame; 109 struct stackframe frame;
110 frame.fp = regs->ARM_fp; 110 arm_get_current_stackframe(regs, &frame);
111 frame.sp = regs->ARM_sp;
112 frame.lr = regs->ARM_lr;
113 frame.pc = regs->ARM_pc;
114 walk_stackframe(&frame, report_trace, &depth); 111 walk_stackframe(&frame, report_trace, &depth);
115 return; 112 return;
116 } 113 }