[PATCH 2/6] Allow create_branch() to return errors

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu May 29 16:31:52 EST 2008

On Thu, 2008-05-29 at 16:20 +1000, Michael Ellerman wrote:
> Currently create_branch() creates a branch instruction for you, and patches
> it into the call site. In some circumstances it would be nice to be able to
> create the instruction and patch it later, and also some code might want
> to check for errors in the branch creation before doing the patching. A
> future patch will change create_branch() to check for errors.
> For callers that don't care, replace create_branch() with patch_branch(),
> which just creates the branch and patches it directly.
> Signed-off-by: Michael Ellerman <michael at ellerman.id.au>

Acked-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

More information about the Linuxppc-dev mailing list