arm64: introduce interfaces to hotpatch kernel and module code
authorJiang Liu <liuj97@gmail.com>
Tue, 7 Jan 2014 14:17:09 +0000 (22:17 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 8 Jan 2014 15:21:29 +0000 (15:21 +0000)
commitae16480785de1da84f21d1698f304a52f9790c49
treedc5ecc5f4c146c805321d1c226d47b4add3337d0
parentb11a64a48ccc7ca0ceb33544206934fbd3cdbb22
arm64: introduce interfaces to hotpatch kernel and module code

Introduce three interfaces to patch kernel and module code:
aarch64_insn_patch_text_nosync():
patch code without synchronization, it's caller's responsibility
to synchronize all CPUs if needed.
aarch64_insn_patch_text_sync():
patch code and always synchronize with stop_machine()
aarch64_insn_patch_text():
patch code and synchronize with stop_machine() if needed

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jiang Liu <liuj97@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/insn.h
arch/arm64/kernel/insn.c