diff options
author | Nikolay Borisov <Nikolay.Borisov@arm.com> | 2014-06-03 14:48:58 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-18 07:29:14 -0400 |
commit | a3250c92aa83e199624133e692a92ecc1d3e7466 (patch) | |
tree | 1b351787d366fb2ca0c6e46813b2a0cdfc2c76ec /arch/arm/kernel/time.c | |
parent | 6888e32a9e0b284c4dcdefcc3158949110699bc2 (diff) |
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: Nikolay Borisov <Nikolay.Borisov@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/time.c')
-rw-r--r-- | arch/arm/kernel/time.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index 829a96d4a179..0cc7e58c47cc 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c | |||
@@ -50,10 +50,7 @@ unsigned long profile_pc(struct pt_regs *regs) | |||
50 | if (!in_lock_functions(regs->ARM_pc)) | 50 | if (!in_lock_functions(regs->ARM_pc)) |
51 | return regs->ARM_pc; | 51 | return regs->ARM_pc; |
52 | 52 | ||
53 | frame.fp = regs->ARM_fp; | 53 | arm_get_current_stackframe(regs, &frame); |
54 | frame.sp = regs->ARM_sp; | ||
55 | frame.lr = regs->ARM_lr; | ||
56 | frame.pc = regs->ARM_pc; | ||
57 | do { | 54 | do { |
58 | int ret = unwind_frame(&frame); | 55 | int ret = unwind_frame(&frame); |
59 | if (ret < 0) | 56 | if (ret < 0) |