]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: jump_label: Remove redundant nops
authorPaul Burton <paul.burton@mips.com>
Fri, 5 Apr 2019 22:50:35 +0000 (22:50 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 9 Apr 2019 23:21:28 +0000 (16:21 -0700)
commit381df63619b99f89c15b9c23446725d542280d14
tree7b661034e379564d872c2fa29dbfac8eef54923b
parente7c5d2e9dff7f7a9f5af326a19f7987d8933d76d
MIPS: jump_label: Remove redundant nops

Both arch_static_branch() & arch_static_branch_jump() emit a control
transfer instruction (ie. branch or jump) without disabling assembler
re-ordering. As such the assembler will automatically fill their delay
slots.

Both functions follow their branch or jump with an explicit nop that at
first appears to be there to fill the delay slot, but given that the
assembler will do that the explicit nops serve no purpose & we end up
with our branch or jump followed by 2 nops. Remove the redundant nops.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/include/asm/jump_label.h