[Top] [All Lists]

[PATCH v2] jump-label: initialize jump-label subsystem somewhat later

To:, Linus Torvalds <>, Andrew Morton <>,, Jeremy Fitzhardinge <>, Peter Zijlstra <>
Subject: [PATCH v2] jump-label: initialize jump-label subsystem somewhat later
From: David Daney <>
Date: Wed, 14 Dec 2011 09:25:32 -0800
Cc:, Jason Baron <>, David Daney <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=/69LPH+Z0WgRLp6qnp482QqBv7UEhotNEOHUwcGq5K0=; b=eWN8KBBZ0al+uVzHLx2+AvnHUzEVNYfdUvG9Z1fPcvmMjbTwA40PGIvKQ14ht+MXF4 2/kapnYGnedg2ltg88mCIePv6m/4lkr4EMvkkbnUWT5BybkcNFM01ydigGRzByosjBYr mH91fGuA9HgB58qjICzl0yXYCSKWN/5qwYVsc=
From: David Daney <>

commit 97ce2c88f9ad42e3c60a9beb9fca87abf3639faa breaks MIPS.

The jump-lable initialization does I-Cache flushing after modifying
code.  On MIPS this is done by calling through the function pointer
flush_icache_range().  This function pointer is initialized trap_init().

As things stand, we cannot be calling jump_label_init() until after
trap_init() completes, so we move the call down to satisfy this

Signed-off-by: David Daney <>

Difference from v1: Move jump_label_init() up one so it is now before
                    mm_init() instead of after it.

 init/main.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/init/main.c b/init/main.c
index 217ed23..68ab12b 100644
--- a/init/main.c
+++ b/init/main.c
@@ -513,8 +513,6 @@ asmlinkage void __init start_kernel(void)
                   __stop___param - __start___param,
-       jump_label_init();
         * These use large bootmem allocations and must precede
         * kmem_cache_init()
@@ -524,6 +522,7 @@ asmlinkage void __init start_kernel(void)
+       jump_label_init();

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH v2] jump-label: initialize jump-label subsystem somewhat later, David Daney <=