xtensa: implement jump_label support
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 20 Dec 2018 03:48:37 +0000 (19:48 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 20 Dec 2018 22:44:38 +0000 (14:44 -0800)
commit64711f9a47d4defa90417f5e8db8ed0060bc3275
tree78a9fbb468c6b667ea99b57e6563689792b285d3
parentaf5395c214c15c18de3decf2229373a8c88c4fde
xtensa: implement jump_label support

Use 3-byte 'nop' and 'j' instructions that are always present. Don't let
assembler mark a spot right after patchable 'j' instruction as
unreachable and later put literals or padding bytes there. Add separate
implementations of patch_text for SMP and UP cases, avoiding use of
atomics on UP.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Documentation/features/core/jump-labels/arch-support.txt
arch/xtensa/Kconfig
arch/xtensa/include/asm/jump_label.h [new file with mode: 0644]
arch/xtensa/kernel/Makefile
arch/xtensa/kernel/jump_label.c [new file with mode: 0644]