jump label: Make arch_jump_label_text_poke_early() optional
authorSteven Rostedt <srostedt@redhat.com>
Fri, 29 Oct 2010 15:02:43 +0000 (11:02 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 29 Oct 2010 16:56:13 +0000 (12:56 -0400)
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>
kernel/jump_label.c

index 12cce78e956874d0a38636b79ff7b76746ae83ec..3b79bd9383307a2b5a8325f53ed4ca472c77d9f8 100644 (file)
@@ -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;