MIPS: jump_label: Use compact branches for >= r6
authorPaul Burton <paul.burton@mips.com>
Fri, 5 Apr 2019 22:50:36 +0000 (22:50 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 9 Apr 2019 23:21:30 +0000 (16:21 -0700)
commit9b6584e35f407a391de39938fd0b4fb29671924f
treea0c653c452daa4462b38e6bc2a50c281474d98e5
parentc838b580ca9dcf16b07aa72bb61a914e9db0fd2c
MIPS: jump_label: Use compact branches for >= r6

MIPSr6 introduced compact branches which have no delay slots. Make use
of them for jump labels in order to avoid the need for a nop to fill the
branch or jump delay slot, saving 4 bytes of code for each static branch.

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