Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nikolay Borisov and committed by
Russell King
e8a5dbc5 49432d4a

+1 -4
+1 -4
arch/arm/oprofile/common.c
··· 107 107 108 108 if (!user_mode(regs)) { 109 109 struct stackframe frame; 110 - frame.fp = regs->ARM_fp; 111 - frame.sp = regs->ARM_sp; 112 - frame.lr = regs->ARM_lr; 113 - frame.pc = regs->ARM_pc; 110 + arm_get_current_stackframe(regs, &frame); 114 111 walk_stackframe(&frame, report_trace, &depth); 115 112 return; 116 113 }