powerpc/kprobes: Move kprobes over to patch_instruction()
authorBalbir Singh <bsingharora@gmail.com>
Tue, 6 Jun 2017 04:29:38 +0000 (14:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 3 Jul 2017 13:12:19 +0000 (23:12 +1000)
commitd07df82c43be82ab6972662180e89e6ba2a828ad
tree3615fcfb4aae0dad056122302c9a07d9dba15280
parent7f6d498ed3354740cfd100e4aa99e388f1a95be7
powerpc/kprobes: Move kprobes over to patch_instruction()

arch_arm/disarm_probe() use direct assignment for copying
instructions, replace them with patch_instruction(). We don't need to
call flush_icache_range() because patch_instruction() does it for us.

Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/kprobes.c