diff options
author | Anton Blanchard <anton@samba.org> | 2014-09-17 03:07:03 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-11-09 17:59:27 -0500 |
commit | 7d56c65a6ff9065c459fc63c509950d8ea66e00c (patch) | |
tree | 77fac333d96da3f1791de1c27b5fbfede304c560 /arch/powerpc/kernel/process.c | |
parent | 6e4c632cdff7bf0238a2543dfe98bd1ad40313c2 (diff) |
powerpc/ftrace: Remove mod_return_to_handler
mod_return_to_handler is the same as return_to_handler, except
it handles the change of the TOC (r2). Add this into
return_to_handler and remove mod_return_to_handler.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 8c2691e445bd..f6b82152e7aa 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -1527,13 +1527,6 @@ void show_stack(struct task_struct *tsk, unsigned long *stack) | |||
1527 | int curr_frame = current->curr_ret_stack; | 1527 | int curr_frame = current->curr_ret_stack; |
1528 | extern void return_to_handler(void); | 1528 | extern void return_to_handler(void); |
1529 | unsigned long rth = (unsigned long)return_to_handler; | 1529 | unsigned long rth = (unsigned long)return_to_handler; |
1530 | unsigned long mrth = -1; | ||
1531 | #ifdef CONFIG_PPC64 | ||
1532 | extern void mod_return_to_handler(void); | ||
1533 | rth = *(unsigned long *)rth; | ||
1534 | mrth = (unsigned long)mod_return_to_handler; | ||
1535 | mrth = *(unsigned long *)mrth; | ||
1536 | #endif | ||
1537 | #endif | 1530 | #endif |
1538 | 1531 | ||
1539 | sp = (unsigned long) stack; | 1532 | sp = (unsigned long) stack; |
@@ -1558,7 +1551,7 @@ void show_stack(struct task_struct *tsk, unsigned long *stack) | |||
1558 | if (!firstframe || ip != lr) { | 1551 | if (!firstframe || ip != lr) { |
1559 | printk("["REG"] ["REG"] %pS", sp, ip, (void *)ip); | 1552 | printk("["REG"] ["REG"] %pS", sp, ip, (void *)ip); |
1560 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 1553 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
1561 | if ((ip == rth || ip == mrth) && curr_frame >= 0) { | 1554 | if ((ip == rth) && curr_frame >= 0) { |
1562 | printk(" (%pS)", | 1555 | printk(" (%pS)", |
1563 | (void *)current->ret_stack[curr_frame].ret); | 1556 | (void *)current->ret_stack[curr_frame].ret); |
1564 | curr_frame--; | 1557 | curr_frame--; |