Re: [PATCH] jump-label: initialize jump-label subsystem somewhatlater
From: David Daney
Date: Wed Dec 14 2011 - 12:17:13 EST
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<david.daney@xxxxxxxxxx>
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
constraint.
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/