Commit a3250c92 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by Russell King

ARM: 8072/1: time: Make use of arm_get_current_stackframe

Make use of the arm_get_current_stackframe api so that
the frame pointer is correctly referenced in THUMB2 mode
Signed-off-by: default avatarNikolay Borisov <Nikolay.Borisov@arm.com>
Acked-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 6888e32a
...@@ -50,10 +50,7 @@ unsigned long profile_pc(struct pt_regs *regs) ...@@ -50,10 +50,7 @@ unsigned long profile_pc(struct pt_regs *regs)
if (!in_lock_functions(regs->ARM_pc)) if (!in_lock_functions(regs->ARM_pc))
return regs->ARM_pc; return regs->ARM_pc;
frame.fp = regs->ARM_fp; arm_get_current_stackframe(regs, &frame);
frame.sp = regs->ARM_sp;
frame.lr = regs->ARM_lr;
frame.pc = regs->ARM_pc;
do { do {
int ret = unwind_frame(&frame); int ret = unwind_frame(&frame);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment