summaryrefslogtreecommitdiffstats
path: root/kernel/jump_label.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-10-29 11:02:43 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-10-29 12:56:13 -0400
commit95bcd683fb694a3e2d0538bf486430a0dfbb4111 (patch)
treec170ccfd23480b971065c3e700f64d590050fc87 /kernel/jump_label.c
parentde31c3ca8179d7c21def7ecb56e4fec0c8659d36 (diff)
downloadop-kernel-dev-95bcd683fb694a3e2d0538bf486430a0dfbb4111.zip
op-kernel-dev-95bcd683fb694a3e2d0538bf486430a0dfbb4111.tar.gz
jump label: Make arch_jump_label_text_poke_early() optional
Some archs do not need to do anything special for jump labels on startup (like MIPS). This patch adds a weak function stub for arch_jump_label_text_poke_early(); Cc: Jason Baron <jbaron@redhat.com> Cc: David Miller <davem@davemloft.net> Cc: David Daney <ddaney@caviumnetworks.com> Suggested-by: Thomas Gleixner <tglx@linutronix.de> LKML-Reference: <1286218615-24011-2-git-send-email-ddaney@caviumnetworks.com> LKML-Reference: <20101015201037.703989993@goodmis.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/jump_label.c')
-rw-r--r--kernel/jump_label.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/jump_label.c b/kernel/jump_label.c
index 12cce78..3b79bd9 100644
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
@@ -270,6 +270,13 @@ out:
return conflict;
}
+/*
+ * Not all archs need this.
+ */
+void __weak arch_jump_label_text_poke_early(jump_label_t addr)
+{
+}
+
static __init int init_jump_label(void)
{
int ret;
OpenPOWER on IntegriCloud