[Top] [All Lists]

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

To: Peter Zijlstra <>
Subject: Re: [PATCH] jump-label: initialize jump-label subsystem somewhat later
From: David Daney <>
Date: Wed, 14 Dec 2011 09:17:05 -0800
Cc: David Daney <>,, Linus Torvalds <>, Andrew Morton <>,, Jeremy Fitzhardinge <>,, Jason Baron <>
In-reply-to: <1323881470.28489.51.camel@twins>
References: <> <1323881470.28489.51.camel@twins>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10
On 12/14/2011 08:51 AM, Peter Zijlstra wrote:
On Wed, 2011-12-14 at 08:48 -0800, David Daney wrote:
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 mm_init().

Actually I misspoke, for MIPS we need jump_label_init() after trap_init(), not mm_init().

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

I'm fine as long as it stays before sched_init(), which it does. Jeremy
is this still early enough for you?

Just tested a revised patch that moves it to between trap_init() and mm_init(), I propose that we do that instead.

New patch in a couple of minutes.

David Daney

<Prev in Thread] Current Thread [Next in Thread>