diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-13 06:45:27 -0800 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-02-23 10:48:56 +1100 |
commit | bb9b903527eb16c8fdad59a562c29e89f5dcf233 (patch) | |
tree | 3a6cbb3a2999f2175762ba0a09f78f52933ff296 /arch/powerpc/kernel/crash_dump.c | |
parent | b54dcfe108b1b72c9d891dce1034aa5679c0d7db (diff) | |
download | blackbird-op-linux-bb9b903527eb16c8fdad59a562c29e89f5dcf233.tar.gz blackbird-op-linux-bb9b903527eb16c8fdad59a562c29e89f5dcf233.zip |
powerpc, ftrace: use create_branch lib function
Impact: clean up, remove duplicate code
When ftrace was first ported to PowerPC, there existed a
create_function_call that would create the instruction to make a call
to a given address. Unfortunately, this call expected to write to
the address it was given, and since it used the address to calculate
the offset, it could not be faked.
ftrace needed a way to create the instruction without actually writing
that instruction to the text section. So ftrace had to implement its
own code.
Now we have create_branch in the code patching library, which does
exactly what ftrace needs. This patch replaces ftrace's implementation
with the library function.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/crash_dump.c')
0 files changed, 0 insertions, 0 deletions