csky: Add jump-label implementation
[email protected]
maintainerPATCH 1/1 csky: Add jump-label implementation
From: Guo Ren <[email protected]>
Add jump-label implementation for static branch
Signed-off-by Guo Ren <[email protected]>
Signed-off-by Guo Ren <[email protected]>
--- arch/csky/Kconfig | 2 ++ arch/csky/include/asm/jump_label.h | 47 ++++++++++++++++++++++++++ arch/csky/kernel/Makefile | 1 + arch/csky/kernel/jump_label.c | 54 ++++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 arch/csky/include/asm/jump_label.h create mode 100644 arch/csky/kernel/jump_label.c
arch/csky/Kconfig +2 -0
@@ -40,6 +40,8 @@ config CSKY select GX6605S_TIMER if CPU_CK610 select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_AUDITSYSCALL + select HAVE_ARCH_JUMP_LABEL if !CPU_CK610 + select HAVE_ARCH_JUMP_LABEL_RELATIVE select HAVE_ARCH_MMAP_RND_BITS select HAVE_ARCH_SECCOMP_FILTER select HAVE_CONTEXT_TRACKING
arch/csky/include/asm/jump_label.h new file +47 -0
47 lines not on this page · raw message
arch/csky/kernel/Makefile +1 -0
@@ -13,6 +13,7 @@ obj-$(CONFIG_STACKTRACE) += stacktrace.o obj-$(CONFIG_CSKY_PMU_V1) += perf_event.o obj-$(CONFIG_PERF_EVENTS) += perf_callchain.o obj-$(CONFIG_HAVE_PERF_REGS) += perf_regs.o +obj-$(CONFIG_JUMP_LABEL) += jump_label.o ifdef CONFIG_FUNCTION_TRACER CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
arch/csky/kernel/jump_label.c new file +54 -0
54 lines not on this page · raw message
Signature · 1 line
2.36.1