Skip to contentSkip to conversation

csky: Add jump-label implementation

PATCH New [email protected] 1 participant 1 message Jul 30, 2022

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 csky: Add jump-label implementation

From: Guo Ren <[email protected]>

Add jump-label implementation for static branch

---
 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
index 21d72b078eef..41d7d614f7a2 100644
@@ -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
index 4eb41421ca5b..6f14c924b20d 100644
@@ -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