powerpc: ftrace, use create_branch
authorSteven Rostedt <srostedt@redhat.com>
Tue, 25 Nov 2008 22:06:19 +0000 (14:06 -0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 28 Nov 2008 13:08:01 +0000 (14:08 +0100)
commit0029ff87529dff01a4b9c5bf380a0caacb5f7418
tree143534dbd52f76ae008b3abc21256c00d4d9fa9b
parentec682cef2d2c1a25a198d32a87fe2649da671d1e
powerpc: ftrace, use create_branch

Impact: clean up

Paul Mackerras pointed out that the code to determine if the branch
can reach the destination is incorrect. Michael Ellerman suggested
to pull out the code from create_branch and use that.

Simply using create_branch is probably the best.

Reported-by: Michael Ellerman <michael@ellerman.id.au>
Reported-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/powerpc/kernel/ftrace.c