]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: insn: Provide a better name for aarch64_insn_is_nop()
authorMark Brown <broonie@kernel.org>
Mon, 4 May 2020 13:13:24 +0000 (14:13 +0100)
committerWill Deacon <will@kernel.org>
Mon, 4 May 2020 15:06:29 +0000 (16:06 +0100)
commitc6bcab8809c35b1061148fd3617f6db12109c2bd
tree5bc504ea92bb1b50893cd72b2461da43ae3b37a8
parent0752dc50d36951f051bef267d9a7c4f0ce2ed3b5
arm64: insn: Provide a better name for aarch64_insn_is_nop()

The current aarch64_insn_is_nop() has exactly one caller which uses it
solely to identify if the instruction is a HINT that can safely be stepped,
requiring us to list things that aren't NOPs and make things more confusing
than they need to be. Rename the function to reflect the actual usage and
make things more clear.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20200504131326.18290-3-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/insn.h
arch/arm64/kernel/insn.c
arch/arm64/kernel/probes/decode-insn.c