]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit732fbe69d5715b23dc8c6457abd9c0c713a53194
treedc5ecc5f4c146c805321d1c226d47b4add3337d0
parentf07485499f6de33112666c0103064faf956257a9
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