arm64: move encode_insn_immediate() from module.c to insn.c
authorJiang Liu <liuj97@gmail.com>
Tue, 7 Jan 2014 14:17:10 +0000 (22:17 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 8 Jan 2014 15:21:29 +0000 (15:21 +0000)
commitc84fced8d990dd86c523233d38b4685a52a4fc3f
tree436b20c25726810b4701e23928f786e550a60d1e
parentae16480785de1da84f21d1698f304a52f9790c49
arm64: move encode_insn_immediate() from module.c to insn.c

Function encode_insn_immediate() will be used by other instruction
manipulate related functions, so move it into insn.c and rename it
as aarch64_insn_encode_immediate().

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
arch/arm64/kernel/module.c