]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/lib/code-patching: refactor patch_instruction()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 24 Nov 2017 07:31:07 +0000 (08:31 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 23 Apr 2019 15:48:55 +0000 (17:48 +0200)
commit2548b03251da2e71afe7f8d5a5de97247a6d0725
treec73fefda7a047bea18a2feb5bf44de2d747afb44
parente2a06bca76fd4a5bc76853bc40850cf4dcd784e3
powerpc/lib/code-patching: refactor patch_instruction()

patch_instruction() uses almost the same sequence as
__patch_instruction()

This patch refactor it so that patch_instruction() uses
__patch_instruction() instead of duplicating code.

BugLink: https://bugs.launchpad.net/bugs/1822870
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 8cf4c05712f04a405f0dacebcca8f042b391694a)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/powerpc/lib/code-patching.c